linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH jgg-for-next] RDMA/rxe: Fix comments about removed tasklets
@ 2023-05-18  7:00 Daisuke Matsuda
  2023-05-18 12:47 ` Bob Pearson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Daisuke Matsuda @ 2023-05-18  7:00 UTC (permalink / raw)
  To: linux-rdma, jgg, rpearsonhpe; +Cc: leonro, zyjzyj2000, Daisuke Matsuda

The commit 9b4b7c1f9f54 ("RDMA/rxe: Add workqueue support for rxe tasks")
removed tasklets and replaced them with a workqueue, but relevant comments
are still remaining in the source code.

Fixes: 9b4b7c1f9f54 ("RDMA/rxe: Add workqueue support for rxe tasks")
Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com>
---
 drivers/infiniband/sw/rxe/rxe_comp.c  | 2 +-
 drivers/infiniband/sw/rxe/rxe_param.h | 2 +-
 drivers/infiniband/sw/rxe/rxe_req.c   | 2 +-
 drivers/infiniband/sw/rxe/rxe_resp.c  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/infiniband/sw/rxe/rxe_comp.c b/drivers/infiniband/sw/rxe/rxe_comp.c
index db18ace74d2b..0c0ae214c3a9 100644
--- a/drivers/infiniband/sw/rxe/rxe_comp.c
+++ b/drivers/infiniband/sw/rxe/rxe_comp.c
@@ -826,7 +826,7 @@ int rxe_completer(struct rxe_qp *qp)
 	}
 
 	/* A non-zero return value will cause rxe_do_task to
-	 * exit its loop and end the tasklet. A zero return
+	 * exit its loop and end the work item. A zero return
 	 * will continue looping and return to rxe_completer
 	 */
 done:
diff --git a/drivers/infiniband/sw/rxe/rxe_param.h b/drivers/infiniband/sw/rxe/rxe_param.h
index 7b41d79e72b2..d2f57ead78ad 100644
--- a/drivers/infiniband/sw/rxe/rxe_param.h
+++ b/drivers/infiniband/sw/rxe/rxe_param.h
@@ -112,7 +112,7 @@ enum rxe_device_param {
 	RXE_INFLIGHT_SKBS_PER_QP_HIGH	= 64,
 	RXE_INFLIGHT_SKBS_PER_QP_LOW	= 16,
 
-	/* Max number of interations of each tasklet
+	/* Max number of interations of each work item
 	 * before yielding the cpu to let other
 	 * work make progress
 	 */
diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c
index 65134a9aefe7..400840c913a9 100644
--- a/drivers/infiniband/sw/rxe/rxe_req.c
+++ b/drivers/infiniband/sw/rxe/rxe_req.c
@@ -853,7 +853,7 @@ int rxe_requester(struct rxe_qp *qp)
 	update_state(qp, &pkt);
 
 	/* A non-zero return value will cause rxe_do_task to
-	 * exit its loop and end the tasklet. A zero return
+	 * exit its loop and end the work item. A zero return
 	 * will continue looping and return to rxe_requester
 	 */
 done:
diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c
index 68f6cd188d8e..b92c41cdb620 100644
--- a/drivers/infiniband/sw/rxe/rxe_resp.c
+++ b/drivers/infiniband/sw/rxe/rxe_resp.c
@@ -1654,7 +1654,7 @@ int rxe_responder(struct rxe_qp *qp)
 	}
 
 	/* A non-zero return value will cause rxe_do_task to
-	 * exit its loop and end the tasklet. A zero return
+	 * exit its loop and end the work item. A zero return
 	 * will continue looping and return to rxe_responder
 	 */
 done:
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH jgg-for-next] RDMA/rxe: Fix comments about removed tasklets
  2023-05-18  7:00 [PATCH jgg-for-next] RDMA/rxe: Fix comments about removed tasklets Daisuke Matsuda
@ 2023-05-18 12:47 ` Bob Pearson
  2023-05-19  3:16 ` Zhu Yanjun
  2023-05-19 16:07 ` Jason Gunthorpe
  2 siblings, 0 replies; 4+ messages in thread
From: Bob Pearson @ 2023-05-18 12:47 UTC (permalink / raw)
  To: Daisuke Matsuda, linux-rdma, jgg; +Cc: leonro, zyjzyj2000

On 5/18/23 02:00, Daisuke Matsuda wrote:
> The commit 9b4b7c1f9f54 ("RDMA/rxe: Add workqueue support for rxe tasks")
> removed tasklets and replaced them with a workqueue, but relevant comments
> are still remaining in the source code.
> 
> Fixes: 9b4b7c1f9f54 ("RDMA/rxe: Add workqueue support for rxe tasks")
> Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com>
> ---
>  drivers/infiniband/sw/rxe/rxe_comp.c  | 2 +-
>  drivers/infiniband/sw/rxe/rxe_param.h | 2 +-
>  drivers/infiniband/sw/rxe/rxe_req.c   | 2 +-
>  drivers/infiniband/sw/rxe/rxe_resp.c  | 2 +-
>  4 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/infiniband/sw/rxe/rxe_comp.c b/drivers/infiniband/sw/rxe/rxe_comp.c
> index db18ace74d2b..0c0ae214c3a9 100644
> --- a/drivers/infiniband/sw/rxe/rxe_comp.c
> +++ b/drivers/infiniband/sw/rxe/rxe_comp.c
> @@ -826,7 +826,7 @@ int rxe_completer(struct rxe_qp *qp)
>  	}
>  
>  	/* A non-zero return value will cause rxe_do_task to
> -	 * exit its loop and end the tasklet. A zero return
> +	 * exit its loop and end the work item. A zero return
>  	 * will continue looping and return to rxe_completer
>  	 */
>  done:
> diff --git a/drivers/infiniband/sw/rxe/rxe_param.h b/drivers/infiniband/sw/rxe/rxe_param.h
> index 7b41d79e72b2..d2f57ead78ad 100644
> --- a/drivers/infiniband/sw/rxe/rxe_param.h
> +++ b/drivers/infiniband/sw/rxe/rxe_param.h
> @@ -112,7 +112,7 @@ enum rxe_device_param {
>  	RXE_INFLIGHT_SKBS_PER_QP_HIGH	= 64,
>  	RXE_INFLIGHT_SKBS_PER_QP_LOW	= 16,
>  
> -	/* Max number of interations of each tasklet
> +	/* Max number of interations of each work item
>  	 * before yielding the cpu to let other
>  	 * work make progress
>  	 */
> diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c
> index 65134a9aefe7..400840c913a9 100644
> --- a/drivers/infiniband/sw/rxe/rxe_req.c
> +++ b/drivers/infiniband/sw/rxe/rxe_req.c
> @@ -853,7 +853,7 @@ int rxe_requester(struct rxe_qp *qp)
>  	update_state(qp, &pkt);
>  
>  	/* A non-zero return value will cause rxe_do_task to
> -	 * exit its loop and end the tasklet. A zero return
> +	 * exit its loop and end the work item. A zero return
>  	 * will continue looping and return to rxe_requester
>  	 */
>  done:
> diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c
> index 68f6cd188d8e..b92c41cdb620 100644
> --- a/drivers/infiniband/sw/rxe/rxe_resp.c
> +++ b/drivers/infiniband/sw/rxe/rxe_resp.c
> @@ -1654,7 +1654,7 @@ int rxe_responder(struct rxe_qp *qp)
>  	}
>  
>  	/* A non-zero return value will cause rxe_do_task to
> -	 * exit its loop and end the tasklet. A zero return
> +	 * exit its loop and end the work item. A zero return
>  	 * will continue looping and return to rxe_responder
>  	 */
>  done:

Looks fine. Thanks.

Reviewed-by: Bob Pearson <rpearsonhpe@gmail.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH jgg-for-next] RDMA/rxe: Fix comments about removed tasklets
  2023-05-18  7:00 [PATCH jgg-for-next] RDMA/rxe: Fix comments about removed tasklets Daisuke Matsuda
  2023-05-18 12:47 ` Bob Pearson
@ 2023-05-19  3:16 ` Zhu Yanjun
  2023-05-19 16:07 ` Jason Gunthorpe
  2 siblings, 0 replies; 4+ messages in thread
From: Zhu Yanjun @ 2023-05-19  3:16 UTC (permalink / raw)
  To: Daisuke Matsuda; +Cc: linux-rdma, jgg, rpearsonhpe, leonro

On Thu, May 18, 2023 at 3:00 PM Daisuke Matsuda
<matsuda-daisuke@fujitsu.com> wrote:
>
> The commit 9b4b7c1f9f54 ("RDMA/rxe: Add workqueue support for rxe tasks")
> removed tasklets and replaced them with a workqueue, but relevant comments
> are still remaining in the source code.
>
> Fixes: 9b4b7c1f9f54 ("RDMA/rxe: Add workqueue support for rxe tasks")
> Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com>
Thanks.
Acked-by: Zhu Yanjun <zyjzyj2000@gmail.com>

Zhu Yanjun
> ---
>  drivers/infiniband/sw/rxe/rxe_comp.c  | 2 +-
>  drivers/infiniband/sw/rxe/rxe_param.h | 2 +-
>  drivers/infiniband/sw/rxe/rxe_req.c   | 2 +-
>  drivers/infiniband/sw/rxe/rxe_resp.c  | 2 +-
>  4 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/infiniband/sw/rxe/rxe_comp.c b/drivers/infiniband/sw/rxe/rxe_comp.c
> index db18ace74d2b..0c0ae214c3a9 100644
> --- a/drivers/infiniband/sw/rxe/rxe_comp.c
> +++ b/drivers/infiniband/sw/rxe/rxe_comp.c
> @@ -826,7 +826,7 @@ int rxe_completer(struct rxe_qp *qp)
>         }
>
>         /* A non-zero return value will cause rxe_do_task to
> -        * exit its loop and end the tasklet. A zero return
> +        * exit its loop and end the work item. A zero return
>          * will continue looping and return to rxe_completer
>          */
>  done:
> diff --git a/drivers/infiniband/sw/rxe/rxe_param.h b/drivers/infiniband/sw/rxe/rxe_param.h
> index 7b41d79e72b2..d2f57ead78ad 100644
> --- a/drivers/infiniband/sw/rxe/rxe_param.h
> +++ b/drivers/infiniband/sw/rxe/rxe_param.h
> @@ -112,7 +112,7 @@ enum rxe_device_param {
>         RXE_INFLIGHT_SKBS_PER_QP_HIGH   = 64,
>         RXE_INFLIGHT_SKBS_PER_QP_LOW    = 16,
>
> -       /* Max number of interations of each tasklet
> +       /* Max number of interations of each work item
>          * before yielding the cpu to let other
>          * work make progress
>          */
> diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c
> index 65134a9aefe7..400840c913a9 100644
> --- a/drivers/infiniband/sw/rxe/rxe_req.c
> +++ b/drivers/infiniband/sw/rxe/rxe_req.c
> @@ -853,7 +853,7 @@ int rxe_requester(struct rxe_qp *qp)
>         update_state(qp, &pkt);
>
>         /* A non-zero return value will cause rxe_do_task to
> -        * exit its loop and end the tasklet. A zero return
> +        * exit its loop and end the work item. A zero return
>          * will continue looping and return to rxe_requester
>          */
>  done:
> diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c
> index 68f6cd188d8e..b92c41cdb620 100644
> --- a/drivers/infiniband/sw/rxe/rxe_resp.c
> +++ b/drivers/infiniband/sw/rxe/rxe_resp.c
> @@ -1654,7 +1654,7 @@ int rxe_responder(struct rxe_qp *qp)
>         }
>
>         /* A non-zero return value will cause rxe_do_task to
> -        * exit its loop and end the tasklet. A zero return
> +        * exit its loop and end the work item. A zero return
>          * will continue looping and return to rxe_responder
>          */
>  done:
> --
> 2.39.1
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH jgg-for-next] RDMA/rxe: Fix comments about removed tasklets
  2023-05-18  7:00 [PATCH jgg-for-next] RDMA/rxe: Fix comments about removed tasklets Daisuke Matsuda
  2023-05-18 12:47 ` Bob Pearson
  2023-05-19  3:16 ` Zhu Yanjun
@ 2023-05-19 16:07 ` Jason Gunthorpe
  2 siblings, 0 replies; 4+ messages in thread
From: Jason Gunthorpe @ 2023-05-19 16:07 UTC (permalink / raw)
  To: Daisuke Matsuda; +Cc: linux-rdma, rpearsonhpe, leonro, zyjzyj2000

On Thu, May 18, 2023 at 04:00:27PM +0900, Daisuke Matsuda wrote:
> The commit 9b4b7c1f9f54 ("RDMA/rxe: Add workqueue support for rxe tasks")
> removed tasklets and replaced them with a workqueue, but relevant comments
> are still remaining in the source code.
> 
> Fixes: 9b4b7c1f9f54 ("RDMA/rxe: Add workqueue support for rxe tasks")
> Signed-off-by: Daisuke Matsuda <matsuda-daisuke@fujitsu.com>
> Reviewed-by: Bob Pearson <rpearsonhpe@gmail.com>
> Acked-by: Zhu Yanjun <zyjzyj2000@gmail.com>
> ---
>  drivers/infiniband/sw/rxe/rxe_comp.c  | 2 +-
>  drivers/infiniband/sw/rxe/rxe_param.h | 2 +-
>  drivers/infiniband/sw/rxe/rxe_req.c   | 2 +-
>  drivers/infiniband/sw/rxe/rxe_resp.c  | 2 +-
>  4 files changed, 4 insertions(+), 4 deletions(-)

Applied to for-next, thanks

Jason

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-19 16:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-18  7:00 [PATCH jgg-for-next] RDMA/rxe: Fix comments about removed tasklets Daisuke Matsuda
2023-05-18 12:47 ` Bob Pearson
2023-05-19  3:16 ` Zhu Yanjun
2023-05-19 16:07 ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).