[PATCH] nvme-mpath: fix I/O failure with EAGAIN when failing over I/O

Christoph Hellwig hch at lst.de
Mon Jun 19 21:28:30 PDT 2023


> +++ b/drivers/nvme/host/multipath.c
> @@ -102,6 +102,7 @@ void nvme_failover_req(struct request *req)
>  	spin_lock_irqsave(&ns->head->requeue_lock, flags);
>  	for (bio = req->bio; bio; bio = bio->bi_next) {
>  		bio_set_dev(bio, ns->head->disk->part0);
> +		bio->bi_opf &= ~REQ_NOWAIT;

Please add a comment based on your explanation in the commit log here.



More information about the Linux-nvme mailing list