diff options
author | Dongli Zhang <dongli.zhang@oracle.com> | 2020-05-29 10:31:08 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-29 11:41:57 -0600 |
commit | 32215469489ad2ad5139ab6fb779c9edfd61618d (patch) | |
tree | cd0ac0a8ddcf81d861735030c8f0875eca8fa5cd /block/blk.h | |
parent | bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f (diff) | |
download | linux-stable-32215469489ad2ad5139ab6fb779c9edfd61618d.tar.gz linux-stable-32215469489ad2ad5139ab6fb779c9edfd61618d.tar.bz2 linux-stable-32215469489ad2ad5139ab6fb779c9edfd61618d.zip |
null_blk: force complete for timeout request
The commit 7b11eab041da ("blk-mq: blk-mq: provide forced completion
method") exports new API to force a request to complete without error
injection.
There should be no error injection when completing a request by timeout
handler.
Otherwise, the below would hang because timeout handler is failed.
echo 100 > /sys/kernel/debug/fail_io_timeout/probability
echo 1000 > /sys/kernel/debug/fail_io_timeout/times
echo 1 > /sys/block/nullb0/io-timeout-fail
dd if=/dev/zero of=/dev/nullb0 bs=512 count=1 oflag=direct
With this patch, the timeout handler is able to complete the IO.
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
0 files changed, 0 insertions, 0 deletions