Skip to content

Commit

Permalink
Change KM_SLEEP to TQ_SLEEP in spa_deadman()
Browse files Browse the repository at this point in the history
Since they both evaluate to zero, this is a semi-cosmetic change
but the latter is the proper value to use as an argument to
taskq_dispatch_delay().

Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4393
  • Loading branch information
dweeezil authored and behlendorf committed Mar 9, 2016
1 parent 95003f7 commit f764edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/spa_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ spa_deadman(void *arg)
vdev_deadman(spa->spa_root_vdev);

spa->spa_deadman_tqid = taskq_dispatch_delay(system_taskq,
spa_deadman, spa, KM_SLEEP, ddi_get_lbolt() +
spa_deadman, spa, TQ_SLEEP, ddi_get_lbolt() +
NSEC_TO_TICK(spa->spa_deadman_synctime));
}

Expand Down

0 comments on commit f764edf

Please sign in to comment.