From: Hannes Reinecke <hare@suse.de>
To: Ping Gan <jacky_gam_2001@163.com>,
sagi@grimberg.me, hch@lst.de, kch@nvidia.com,
linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: ping.gan@dell.com
Subject: Re: [PATCH 2/2] nvmet-rdma: add unbound_wq support for nvmet-rdma
Date: Wed, 17 Jul 2024 10:21:04 +0200 [thread overview]
Message-ID: <dfd1220d-1c99-4bc5-ac76-2fac7583bfa2@suse.de> (raw)
In-Reply-To: <20240717075208.87324-3-jacky_gam_2001@163.com>
On 7/17/24 09:52, Ping Gan wrote:
> To define a module parameter use_unbound_wq to enable unbound
> workqueue to handle RDMA's IO of CQ.
>
> Signed-off-by: jackygam2001 <jacky_gam_2001@163.com>
Similar here, please use your real name as the author name.
> ---
> drivers/nvme/target/rdma.c | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/nvme/target/rdma.c b/drivers/nvme/target/rdma.c
> index 1eff8ca6a5f1..bfd7106316bc 100644
> --- a/drivers/nvme/target/rdma.c
> +++ b/drivers/nvme/target/rdma.c
> @@ -155,6 +155,10 @@ static int nvmet_rdma_srq_size = 1024;
> module_param_cb(srq_size, &srq_size_ops, &nvmet_rdma_srq_size, 0644);
> MODULE_PARM_DESC(srq_size, "set Shared Receive Queue (SRQ) size, should >= 256 (default: 1024)");
>
> +static bool use_unbound_wq;
> +module_param(use_unbound_wq, bool, 0444);
> +MODULE_PARM_DESC(use_unbound_wq, "use unbound workqueue to handle IO request: Default false");
> +
> static DEFINE_IDA(nvmet_rdma_queue_ida);
> static LIST_HEAD(nvmet_rdma_queue_list);
> static DEFINE_MUTEX(nvmet_rdma_queue_mutex);
> @@ -1259,7 +1263,11 @@ static int nvmet_rdma_create_queue_ib(struct nvmet_rdma_queue *queue)
> */
> nr_cqe = queue->recv_queue_size + 2 * queue->send_queue_size;
>
> - queue->cq = ib_cq_pool_get(ndev->device, nr_cqe + 1,
> + if (use_unbound_wq)
> + queue->cq = ib_cq_pool_get(ndev->device, nr_cqe + 1,
> + queue->comp_vector, IB_POLL_UNBOUND_WORKQUEUE);
> + else
> + queue->cq = ib_cq_pool_get(ndev->device, nr_cqe + 1,
> queue->comp_vector, IB_POLL_WORKQUEUE);
> if (IS_ERR(queue->cq)) {
> ret = PTR_ERR(queue->cq);
Otherwise:
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
prev parent reply other threads:[~2024-07-17 8:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-17 7:52 [PATCH 0/2] nvmet: support unbound_wq for RDMA and TCP Ping Gan
2024-07-17 7:52 ` [PATCH 1/2] nvmet-tcp: add unbound_wq support for nvmet-tcp Ping Gan
2024-07-17 8:20 ` Hannes Reinecke
2024-07-17 8:52 ` Ping Gan
2024-07-17 7:52 ` [PATCH 2/2] nvmet-rdma: add unbound_wq support for nvmet-rdma Ping Gan
2024-07-17 8:21 ` Hannes Reinecke [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dfd1220d-1c99-4bc5-ac76-2fac7583bfa2@suse.de \
--to=hare@suse.de \
--cc=hch@lst.de \
--cc=jacky_gam_2001@163.com \
--cc=kch@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=ping.gan@dell.com \
--cc=sagi@grimberg.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®