]> granicus.if.org Git - zfs/commit
Return -1 for generic kmem cache shrinker
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 23 Jul 2013 22:52:11 +0000 (15:52 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 30 Jul 2013 22:33:24 +0000 (15:33 -0700)
commitb9b3715346b2748b2e512099862f1eabf076cf51
treee393fbab50e4fffc0cd2215855bd1fd019c899d4
parentc47efbc7fda5eaed9b60b3767347d9f88553309b
Return -1 for generic kmem cache shrinker

It has been observed that it's possible to get in a state where
shrink_slabs() will spin repeated invoking the generic kmem cache
shrinker.  It fails to detect it's not making forward progress
reclaiming from the cache and doesn't give up.  To ensure this
never occurs we unconditionally return -1 after reclaiming what
we can.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Closes zfsonlinux/zfs#1276
Closes zfsonlinux/zfs#1598
Closes zfsonlinux/zfs#1432
module/spl/spl-kmem.c