HomeFreeBSD

Revert Disable direct reclaim for z_wr_* threads

Description

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

Details

Provenance
Richard Yao <ryao@cs.stonybrook.edu>Authored on May 16 2012, 10:16 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 27 2012, 7:01 PM
Parents
rG62c4165a1bbf: Revert Fix zpl_writepage() deadlock
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG44f21da41c44: Revert Disable direct reclaim for z_wr_* threads (authored by Richard Yao <ryao@cs.stonybrook.edu>).Aug 27 2012, 7:01 PM