Skip to content

Commit

Permalink
Avoid Linux hung task message in ZTHR
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dweeezil authored and behlendorf committed Apr 15, 2018
1 parent 5e567da commit 5284f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/zthr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5284f43

Please sign in to comment.