Dongli Zhang 3221546948 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>
2020-05-29 11:41:57 -06:00
..
2020-05-27 05:21:23 -06:00
2020-05-27 05:21:23 -06:00
2019-11-28 10:40:47 -07:00
2020-03-27 10:23:43 -06:00
2020-03-27 10:23:43 -06:00
2020-03-27 10:23:43 -06:00
2019-07-01 08:16:08 -06:00
2018-11-09 08:14:14 -07:00
2020-03-27 10:23:43 -06:00
2020-03-30 11:20:13 -07:00
2020-04-10 17:20:06 -07:00
2018-10-26 14:36:21 -07:00