Message ID | 20200930080256.90964-2-hare@suse.de |
---|---|
State | New |
Headers | show |
Series | scsi: remove devices in ALUA transitioning status | expand |
diff --git a/block/blk-mq.c b/block/blk-mq.c index 0015a1892153..a19dda3a4ad0 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1403,7 +1403,7 @@ bool blk_mq_dispatch_rq_list(struct blk_mq_hw_ctx *hctx, struct list_head *list, break; default: errors++; - blk_mq_end_request(rq, BLK_STS_IOERR); + blk_mq_end_request(rq, ret); } } while (!list_empty(list)); out:
blk_mq_end_request() will use the block status returned from queue_rq() as argument, except in one instance in blk_mq_dispatch_rq_list(), where the generic BLK_STS_IOERR is used. Signed-off-by: Hannes Reinecke <hare@suse.de> --- block/blk-mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)