[PATCH 1/3] nvme-rdma: handle cpu unplug when re-establishing the controller

Christoph Hellwig hch at lst.de
Mon Mar 13 12:58:18 PDT 2017


> diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c
> index 779f516e7a4e..47a479f26e5d 100644
> --- a/drivers/nvme/host/rdma.c
> +++ b/drivers/nvme/host/rdma.c
> @@ -343,8 +343,6 @@ static int __nvme_rdma_init_request(struct nvme_rdma_ctrl *ctrl,
>  	struct ib_device *ibdev = dev->dev;
>  	int ret;
>  
> -	BUG_ON(queue_idx >= ctrl->queue_count);

This makes me a bit nervous, shouldn't we ensure that queue_count
is accurate even with the fix?



More information about the Linux-nvme mailing list