From 5284f43a1e66f6237bb300f256460b4220398f3e Mon Sep 17 00:00:00 2001 From: Tim Chase Date: Sun, 15 Apr 2018 17:12:28 -0500 Subject: [PATCH] Avoid Linux hung task message in ZTHR Use an interruptible to avoid Linux hung task message in ZTHR and to prevent inflating the load average. Reviewed-by: Giuseppe Di Natale Reviewed-by: Brian Behlendorf Signed-off-by: Tim Chase Closes #7440 Closes #7441 --- module/zfs/zthr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/zthr.c b/module/zfs/zthr.c index 9beb7e128f2b..dc0f6d983495 100644 --- a/module/zfs/zthr.c +++ b/module/zfs/zthr.c @@ -189,7 +189,7 @@ zthr_procedure(void *arg) mutex_enter(&t->zthr_lock); } else { /* go to sleep */ - cv_wait(&t->zthr_cv, &t->zthr_lock); + cv_wait_sig(&t->zthr_cv, &t->zthr_lock); } } mutex_exit(&t->zthr_lock);