diff options
author | Hannes Reinecke <hare@suse.de> | 2020-09-30 11:02:53 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-11-11 06:58:11 +0300 |
commit | e21ee5a6b9c9d30fd07ce5bd3e4a5668a03af6d9 (patch) | |
tree | ecdb6796eb0b0bd85adc2c2cc43e43a70ea446e2 /block | |
parent | e9326b5a6f5b434af1889a7efa64dd9a738ef90e (diff) | |
download | linux-e21ee5a6b9c9d30fd07ce5bd3e4a5668a03af6d9.tar.xz |
scsi: block: Return status code in blk_mq_end_request()
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.
Link: https://lore.kernel.org/r/20200930080256.90964-2-hare@suse.de
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 55bcee5dc032..1b25ec2fe9be 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1404,7 +1404,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: |