Commit 8f31dded authored by Guoqing Jiang's avatar Guoqing Jiang Committed by Christoph Hellwig

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: default avatarGuoqing Jiang <guoqing.jiang@linux.dev>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 5e6a7d1e
...@@ -387,8 +387,7 @@ static void nvme_ns_head_submit_bio(struct bio *bio) ...@@ -387,8 +387,7 @@ static void nvme_ns_head_submit_bio(struct bio *bio)
} else { } else {
dev_warn_ratelimited(dev, "no available path - failing I/O\n"); dev_warn_ratelimited(dev, "no available path - failing I/O\n");
bio->bi_status = BLK_STS_IOERR; bio_io_error(bio);
bio_endio(bio);
} }
srcu_read_unlock(&head->srcu, srcu_idx); srcu_read_unlock(&head->srcu, srcu_idx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment