diff options
author | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2023-03-14 07:11:05 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-03-15 15:50:23 +0300 |
commit | 63f886597085f346276e3b3c8974de0100d65f32 (patch) | |
tree | 792367e5858fd22b03884f3156529aa13be478ff /tools/perf/scripts/python/task-analyzer.py | |
parent | 00e885efcfbb8712d3e1bfc1ae30639c15ca1d3b (diff) | |
download | linux-63f886597085f346276e3b3c8974de0100d65f32.tar.xz |
block: null_blk: Fix handling of fake timeout request
When injecting a fake timeout into the null_blk driver using
fail_io_timeout, the request timeout handler does not execute
blk_mq_complete_request(), so the complete callback is never executed
for a timedout request.
The null_blk driver also has a driver-specific fake timeout mechanism
which does not have this problem. Fix the problem with fail_io_timeout
by using the same meachanism as null_blk internal timeout feature, using
the fake_timeout field of null_blk commands.
Reported-by: Akinobu Mita <akinobu.mita@gmail.com>
Fixes: de3510e52b0a ("null_blk: fix command timeout completion handling")
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20230314041106.19173-2-damien.lemoal@opensource.wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions