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 <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #7440 
Closes #7441
This commit is contained in:
Tim Chase 2018-04-15 17:12:28 -05:00 committed by Brian Behlendorf
parent 5e567da987
commit 5284f43a1e
1 changed files with 1 additions and 1 deletions

View File

@ -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);