Skip to content

Commit 8f31dde

Browse files
Guoqing JiangChristoph Hellwig
authored andcommitted
nvme-multipath: call bio_io_error in nvme_ns_head_submit_bio
Use bio_io_error() here since bio_io_error does the same thing. Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 5e6a7d1 commit 8f31dde

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/nvme/host/multipath.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,7 @@ static void nvme_ns_head_submit_bio(struct bio *bio)
387387
} else {
388388
dev_warn_ratelimited(dev, "no available path - failing I/O\n");
389389

390-
bio->bi_status = BLK_STS_IOERR;
391-
bio_endio(bio);
390+
bio_io_error(bio);
392391
}
393392

394393
srcu_read_unlock(&head->srcu, srcu_idx);

0 commit comments

Comments
 (0)