]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Wait interruptibly in prefetch thread
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 9 Jun 2015 23:39:25 +0000 (16:39 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 16 Jun 2015 23:18:11 +0000 (16:18 -0700)
commit8e70975f905935df2a68fb242570056035a52948
treedc5f37d98115f8bbfd988619c470fabded2ed2e7
parentb64ccd6c52cfb34d7b92715baef5ebd9305de6d1
Wait interruptibly in prefetch thread

The Linux kernel watchdog will automatically dump a backtrace for
any process while sleeps for over 120s in an uninterruptible state.

The solution is for the prefetch thread to sleep in an interruptible
state.  The way the existing code was written this is safe because
when woken it will always reevaluate its conditional.  As a general
rule it is preferable to sleep in an interruptible when possible.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3450
Closes #3402
module/zfs/dmu_traverse.c