diff options
author | Christoph Hellwig <hch@lst.de> | 2018-06-19 18:40:14 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-06-19 11:27:18 -0600 |
commit | 0cc61e64e21cfc24fa0d938fd148aba4a595163b (patch) | |
tree | 51eab03835e134bfc48d588ea268d1580ebfd3d3 /block/bio.c | |
parent | d6c73964f1e2a07f75057fb32ae46f6599036f93 (diff) | |
download | linux-0cc61e64e21cfc24fa0d938fd148aba4a595163b.tar.gz linux-0cc61e64e21cfc24fa0d938fd148aba4a595163b.tar.bz2 linux-0cc61e64e21cfc24fa0d938fd148aba4a595163b.zip |
block: fix timeout changes for legacy request drivers
blk_mq_complete_request can only be called for blk-mq drivers, but when
removing the BLK_EH_HANDLED return value, two legacy request timeout
methods incorrectly got switched to call blk_mq_complete_request.
Call __blk_complete_request instead to reinstance the previous behavior.
For that __blk_complete_request needs to be exported.
Fixes: 1fc2b62e ("scsi_transport_fc: complete requests from ->timeout")
Fixes: 0df0bb08 ("null_blk: complete requests from ->timeout")
Reported-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bio.c')
0 files changed, 0 insertions, 0 deletions