[PATCH 2/2] nvme-rdma: check the number of hw queues mapped
Sagi Grimberg
sagi at lightbits.io
Thu Jun 9 04:19:55 PDT 2016
This needs documentation in the form of:
/*
* XXX: blk-mq might not map all our hw contexts but this is a must for
* us for fabric connects. So until we can fix blk-mq we check that.
*/
> + hw_queue_mapped = blk_mq_hctx_mapped(ctrl->ctrl.connect_q);
> + if (hw_queue_mapped < ctrl->ctrl.connect_q->nr_hw_queues) {
> + dev_err(ctrl->ctrl.device,
> + "%d hw queues created, but only %d were mapped to sw queues\n",
> + ctrl->ctrl.connect_q->nr_hw_queues,
> + hw_queue_mapped);
> + ret = -EINVAL;
> + goto out_cleanup_connect_q;
> + }
> +
> ret = nvme_rdma_connect_io_queues(ctrl);
> if (ret)
> goto out_cleanup_connect_q;
>
More information about the Linux-nvme
mailing list