summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorTim Chase <[email protected]>2018-04-15 17:12:28 -0500
committerBrian Behlendorf <[email protected]>2018-04-15 15:12:28 -0700
commit5284f43a1e66f6237bb300f256460b4220398f3e (patch)
tree9aac85ba619fd4b2397618e9f04a4f4a7480daec /module
parent5e567da987e3ba930cd908aae9f1d0373de9a0f8 (diff)
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tim Chase <[email protected]> Closes #7440 Closes #7441
Diffstat (limited to 'module')
-rw-r--r--module/zfs/zthr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zthr.c b/module/zfs/zthr.c
index 9beb7e128..dc0f6d983 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);