Skip to content

Commit

Permalink
nvme-multipath: call bio_io_error in nvme_ns_head_submit_bio
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guoqing Jiang authored and Christoph Hellwig committed Mar 14, 2022
1 parent 5e6a7d1 commit 8f31dde
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/nvme/host/multipath.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8f31dde

Please sign in to comment.