Revert Disable direct reclaim for z_wr_* threads
authorRichard Yao <ryao@cs.stonybrook.edu>
Wed, 16 May 2012 22:16:02 +0000 (18:16 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 27 Aug 2012 19:01:37 +0000 (12:01 -0700)
commit44f21da41c441bfceec7b825991b6e68321d78a2
tree42d42d46c19fd13f37fd753ae47427b0058d44a3
parent62c4165a1bbfb7d68f8ebf93d32a6fc8ea4d4e33
Revert Disable direct reclaim for z_wr_* threads

This commit used PF_MEMALLOC to prevent a memory reclaim deadlock.
However, commit 49be0ccf1fdc2ce852271d4d2f8b7a9c2c4be6db eliminated
the invocation of __cv_init(), which was the cause of the deadlock.
PF_MEMALLOC has the side effect of permitting pages from ZONE_DMA
to be allocated.  The use of PF_MEMALLOC was found to cause stability
problems when doing swap on zvols. Since this technique is known to
cause problems and no longer fixes anything, we revert it.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #726
include/sys/zfs_context.h
module/zfs/spa.c