]> granicus.if.org Git - spl/commit
Do not call cond_resched() in spl_slab_reclaim()
authorRichard Yao <ryao@cs.stonybrook.edu>
Thu, 21 Mar 2013 17:21:11 +0000 (13:21 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 21 Mar 2013 19:58:44 +0000 (12:58 -0700)
commitfeaf1e321da97ab0aaa60edc121fb6aa2d03952d
tree1bbff4a9ce8ede310366fb0339e8bc6ef870e116
parentbef14fbc8c29fb07a34fc3ac7f70ef8c2f8d1c0e
Do not call cond_resched() in spl_slab_reclaim()

Calling cond_resched() after each object is freed and then after each
slab is freed can cause slabs of objects to live for excessive periods
of time following reclaimation. This interferes with the kernel's own
memory management when called from kswapd and can cause direct reclaim
to occur in response to memory pressure that should have been resolved.

Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
module/spl/spl-kmem.c