[PATCH] nvme-rdma: fix -EIO cleanup order in queue_rq

Christoph Hellwig hch at lst.de
Tue Aug 18 22:45:36 PDT 2026


On Thu, Aug 13, 2026 at 05:45:00PM +0800, Xixin Liu wrote:
> -	nvme_cleanup_cmd(rq);
> +	if (err != -EIO) {
> +		nvme_cleanup_cmd(rq);
> +		ret = (err == -ENOMEM || err == -EAGAIN) ?
> +			BLK_STS_RESOURCE : BLK_STS_IOERR;

Please stick to the much more readable if/else here.




More information about the Linux-nvme mailing list