diff options
author | Guoqing Jiang <guoqing.jiang@linux.dev> | 2022-03-09 14:02:28 +0800 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-03-14 08:43:05 +0100 |
commit | 8f31dded50d927974a5a696196052ed53f1baf66 (patch) | |
tree | af2af47ef48f29638628142e3fdeb3bb24cc42e3 /drivers/nvme | |
parent | 5e6a7d1eb834be23243c48a964ced67ab0b6e9ce (diff) | |
download | linux-stable-8f31dded50d927974a5a696196052ed53f1baf66.tar.gz linux-stable-8f31dded50d927974a5a696196052ed53f1baf66.tar.bz2 linux-stable-8f31dded50d927974a5a696196052ed53f1baf66.zip |
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>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/multipath.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c index 3ddc1ba66f0d..d13b81cd6225 100644 --- a/drivers/nvme/host/multipath.c +++ b/drivers/nvme/host/multipath.c @@ -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); |