aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-12-15 16:02:48 -0800
committerBrian Behlendorf <[email protected]>2015-01-16 13:55:09 -0800
commite50e6cc958a85e010d996ca80cf20d48c51103d3 (patch)
tree74b623e6a03817e9acd915e886d8291e7b275e13
parentb1c3ae48a7d1ec40d86218e60c928f093a898238 (diff)
Reduce kmem cache deadlock threshold
Reduce the threshold for detecting a kmem cache deadlock by 10x from HZ to HZ/10. The reduced value is still several orders of magnitude large enough to avoid being triggered incorrectly. By reducing it we allow the system to resolve the issue more quickly. Signed-off-by: Brian Behlendorf <[email protected]>
-rw-r--r--module/spl/spl-kmem-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/spl/spl-kmem-cache.c b/module/spl/spl-kmem-cache.c
index a68852ed7..809ac5cc5 100644
--- a/module/spl/spl-kmem-cache.c
+++ b/module/spl/spl-kmem-cache.c
@@ -1215,7 +1215,7 @@ spl_cache_grow(spl_kmem_cache_t *skc, int flags, void **obj)
rc = spl_emergency_alloc(skc, flags, obj);
} else {
remaining = wait_event_timeout(skc->skc_waitq,
- spl_cache_grow_wait(skc), HZ);
+ spl_cache_grow_wait(skc), HZ / 10);
if (!remaining && test_bit(KMC_BIT_VMEM, &skc->skc_flags)) {
spin_lock(&skc->skc_lock);