diff options
author | Tim Chase <[email protected]> | 2018-04-15 17:12:28 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-04-15 15:12:28 -0700 |
commit | 5284f43a1e66f6237bb300f256460b4220398f3e (patch) | |
tree | 9aac85ba619fd4b2397618e9f04a4f4a7480daec /module | |
parent | 5e567da987e3ba930cd908aae9f1d0373de9a0f8 (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.c | 2 |
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); |