Skip to contentSkip to conversation

nvme-multipath: call bio_io_error in nvme_ns_head_submit_bio

PATCH Applied Guoqing Jiang 3 participants 3 messages Mar 9, 2022 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/nvme/host/multipath.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/nvme/host/multipath.c +1 -2
index f8bf6606eb2f..31c756fffcec 100644
@@ -386,8 +386,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);
Signature · 1 line
2.31.1