]> git.proxmox.com Git - mirror_zfs.git/commit
Do not stop kernel shrinker on lock contention
authorDebabrata Banerjee <dbanerje@akamai.com>
Wed, 15 Mar 2017 22:50:32 +0000 (18:50 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 2 May 2017 19:49:48 +0000 (15:49 -0400)
commit2e91c2fb1a47f98c2dc06725c284db16d852a618
tree4b8c727e048f0b508982cefe2911e16bd3d477b3
parentb855550c336c04b2bde85d9ffbd893b196fdd7b5
Do not stop kernel shrinker on lock contention

Lock contention, by itself, shouldn't indicate a stop condition to the
kernel's slab shrinker. Doing so can cause stalls when the kernel is
trying to free large parts of the cache such as is done by drop_caches

Also, perhaps arc_reclaim_lock should be a spinlock, and this code
eliminated.

AKAMAI: zfs: CR 3593801
Reviewed-by: Tim Chase <tim@chase2k.com>
Reviewed-by: Richard Yao <ryao@gentoo.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Debabrata Banerjee <dbanerje@akamai.com>
Issue #6035
module/zfs/arc.c