Fix txg_sync_thread deadlock
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 Jul 2011 20:55:27 +0000 (13:55 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 Jul 2011 22:24:57 +0000 (15:24 -0700)
Update two kmem_alloc()'s in dbuf_dirty() to use KM_PUSHPAGE.
Because these functions are called from txg_sync_thread we
must ensure they don't reenter the zfs filesystem code via
the .writepage callback.  This would result in a deadlock.

This deadlock is rare and has only been observed once under
an abusive mmap() write workload.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

No differences found