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>
This commit is contained in:
Guoqing Jiang 2022-03-09 14:02:28 +08:00 committed by Christoph Hellwig
parent 5e6a7d1eb8
commit 8f31dded50

View File

@ -387,8 +387,7 @@ static void nvme_ns_head_submit_bio(struct bio *bio)
} else {
dev_warn_ratelimited(dev, "no available path - failing I/O\n");
bio->bi_status = BLK_STS_IOERR;
bio_endio(bio);
bio_io_error(bio);
}
srcu_read_unlock(&head->srcu, srcu_idx);