Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4b197769 authored by Mark Lord's avatar Mark Lord Committed by Jens Axboe
Browse files

block: Prevent hang_check firing during long I/O



During long I/O operations, the hang_check timer may fire,
trigger stack dumps that unnecessarily alarm the user.

Eg.  hdparm --security-erase NULL /dev/sdb  ## can take *hours* to complete

So, if hang_check is armed, we should wake up periodically
to prevent it from triggering.  This patch uses a wake-up interval
equal to half the hang_check timer period, which keeps overhead low enough.

Signed-off-by: default avatarMark Lord <mlord@pobox.com>
Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent 749ef9f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment