diff mbox series

RDMA/rds: remove unused struct 'rds_ib_dereg_odp_mr'

Message ID 20240531233307.302571-1-linux@treblig.org (mailing list archive)
State Not Applicable
Delegated to: Netdev Maintainers
Headers show
Series RDMA/rds: remove unused struct 'rds_ib_dereg_odp_mr' | expand

Checks

Context Check Description
netdev/series_format warning Single patches do not need cover letters; Target tree name not specified in the subject
netdev/tree_selection success Guessed tree name to be net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 902 this patch: 902
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers success CCed 7 of 7 maintainers
netdev/build_clang success Errors and warnings before: 906 this patch: 906
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 906 this patch: 906
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 10 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/contest success net-next-2024-06-01--15-00 (tests: 1040)

Commit Message

Dr. David Alan Gilbert May 31, 2024, 11:33 p.m. UTC
From: "Dr. David Alan Gilbert" <linux@treblig.org>

'rds_ib_dereg_odp_mr' has been unused since the original
commit 2eafa1746f17 ("net/rds: Handle ODP mr
registration/unregistration").

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 net/rds/ib_rdma.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Simon Horman June 4, 2024, 5:08 p.m. UTC | #1
On Sat, Jun 01, 2024 at 12:33:07AM +0100, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> 
> 'rds_ib_dereg_odp_mr' has been unused since the original
> commit 2eafa1746f17 ("net/rds: Handle ODP mr
> registration/unregistration").

nit: Maybe commit lines are best not line-wrapped.
     I'm unsure.

> 
> Remove it.
> 
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>

The above not withstanding, this looks good to me.

Reviewed-by: Simon Horman <horms@kernel.org>
Dr. David Alan Gilbert June 4, 2024, 5:32 p.m. UTC | #2
* Simon Horman (horms@kernel.org) wrote:
> On Sat, Jun 01, 2024 at 12:33:07AM +0100, linux@treblig.org wrote:
> > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > 
> > 'rds_ib_dereg_odp_mr' has been unused since the original
> > commit 2eafa1746f17 ("net/rds: Handle ODP mr
> > registration/unregistration").
> 
> nit: Maybe commit lines are best not line-wrapped.
>      I'm unsure.

Yeh I wasn't too sure, checkpatch seems to have code
to deal with it, so it is expecting it could be wrapped:

  # A commit match can span multiple lines so this block attempts to find a
  # complete typical commit on a maximum of 3 lines

> > 
> > Remove it.
> > 
> > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> 
> The above not withstanding, this looks good to me.
> 
> Reviewed-by: Simon Horman <horms@kernel.org>

Thanks!

Dave
Allison Henderson June 4, 2024, 5:51 p.m. UTC | #3
On Sat, 2024-06-01 at 00:33 +0100, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> 
> 'rds_ib_dereg_odp_mr' has been unused since the original
> commit 2eafa1746f17 ("net/rds: Handle ODP mr
> registration/unregistration").
> 
> Remove it.
> 
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>

This patch looks fine to me, the struct is indeed unused at this point.
Thanks for the clean up!

Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
> ---
>  net/rds/ib_rdma.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c
> index 8f070ee7e742..d1cfceeff133 100644
> --- a/net/rds/ib_rdma.c
> +++ b/net/rds/ib_rdma.c
> @@ -40,10 +40,6 @@
>  #include "rds.h"
>  
>  struct workqueue_struct *rds_ib_mr_wq;
> -struct rds_ib_dereg_odp_mr {
> -       struct work_struct work;
> -       struct ib_mr *mr;
> -};
>  
>  static void rds_ib_odp_mr_worker(struct work_struct *work);
>
Dr. David Alan Gilbert July 20, 2024, 12:28 a.m. UTC | #4
* Allison Henderson (allison.henderson@oracle.com) wrote:
> On Sat, 2024-06-01 at 00:33 +0100, linux@treblig.org wrote:
> > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > 
> > 'rds_ib_dereg_odp_mr' has been unused since the original
> > commit 2eafa1746f17 ("net/rds: Handle ODP mr
> > registration/unregistration").
> > 
> > Remove it.
> > 
> > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> 
> This patch looks fine to me, the struct is indeed unused at this point.
> Thanks for the clean up!
> 
> Reviewed-by: Allison Henderson <allison.henderson@oracle.com>

Hi,
  Does anyone know who might pick this one up - I don't think
it's in -next yet?

Dave

> > ---
> >  net/rds/ib_rdma.c | 4 ----
> >  1 file changed, 4 deletions(-)
> > 
> > diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c
> > index 8f070ee7e742..d1cfceeff133 100644
> > --- a/net/rds/ib_rdma.c
> > +++ b/net/rds/ib_rdma.c
> > @@ -40,10 +40,6 @@
> >  #include "rds.h"
> >  
> >  struct workqueue_struct *rds_ib_mr_wq;
> > -struct rds_ib_dereg_odp_mr {
> > -       struct work_struct work;
> > -       struct ib_mr *mr;
> > -};
> >  
> >  static void rds_ib_odp_mr_worker(struct work_struct *work);
> >  
>
Zhu Yanjun July 21, 2024, 6:41 a.m. UTC | #5
在 2024/6/1 1:33, linux@treblig.org 写道:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> 
> 'rds_ib_dereg_odp_mr' has been unused since the original
> commit 2eafa1746f17 ("net/rds: Handle ODP mr
> registration/unregistration").
> 
> Remove it.
> 
Need Fixes?

Fixes: 2eafa1746f17 ("net/rds: Handle ODP mr
registration/unregistration")

Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>

Zhu Yanjun
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> ---
>   net/rds/ib_rdma.c | 4 ----
>   1 file changed, 4 deletions(-)
> 
> diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c
> index 8f070ee7e742..d1cfceeff133 100644
> --- a/net/rds/ib_rdma.c
> +++ b/net/rds/ib_rdma.c
> @@ -40,10 +40,6 @@
>   #include "rds.h"
>   
>   struct workqueue_struct *rds_ib_mr_wq;
> -struct rds_ib_dereg_odp_mr {
> -	struct work_struct work;
> -	struct ib_mr *mr;
> -};
>   
>   static void rds_ib_odp_mr_worker(struct work_struct *work);
>
Leon Romanovsky July 21, 2024, 7:05 a.m. UTC | #6
On Sat, Jul 20, 2024 at 12:28:17AM +0000, Dr. David Alan Gilbert wrote:
> * Allison Henderson (allison.henderson@oracle.com) wrote:
> > On Sat, 2024-06-01 at 00:33 +0100, linux@treblig.org wrote:
> > > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > > 
> > > 'rds_ib_dereg_odp_mr' has been unused since the original
> > > commit 2eafa1746f17 ("net/rds: Handle ODP mr
> > > registration/unregistration").
> > > 
> > > Remove it.
> > > 
> > > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> > 
> > This patch looks fine to me, the struct is indeed unused at this point.
> > Thanks for the clean up!
> > 
> > Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
> 
> Hi,
>   Does anyone know who might pick this one up - I don't think
> it's in -next yet?

1. We are in merge window and this patch is not a bug fix, so it should
   wait until the next merge window.
2. Title should be net/rds ... and not RDMA/rds ...
3. netdev is closed right now, so it should be resubmitted after next merge
   window ends.

Thanks
Dr. David Alan Gilbert July 21, 2024, 10:59 a.m. UTC | #7
* Zhu Yanjun (yanjun.zhu@linux.dev) wrote:
> 在 2024/6/1 1:33, linux@treblig.org 写道:
> > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > 
> > 'rds_ib_dereg_odp_mr' has been unused since the original
> > commit 2eafa1746f17 ("net/rds: Handle ODP mr
> > registration/unregistration").
> > 
> > Remove it.
> > 
> Need Fixes?
> 
> Fixes: 2eafa1746f17 ("net/rds: Handle ODP mr
> registration/unregistration")

I've not been using Fixes on these, because they
have no actual consequence - there's no need
for stable or downstream to pick them up, which is
what Fixes is often used for.

> Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>

Thanks,

Dave

> Zhu Yanjun
> > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> > ---
> >   net/rds/ib_rdma.c | 4 ----
> >   1 file changed, 4 deletions(-)
> > 
> > diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c
> > index 8f070ee7e742..d1cfceeff133 100644
> > --- a/net/rds/ib_rdma.c
> > +++ b/net/rds/ib_rdma.c
> > @@ -40,10 +40,6 @@
> >   #include "rds.h"
> >   struct workqueue_struct *rds_ib_mr_wq;
> > -struct rds_ib_dereg_odp_mr {
> > -	struct work_struct work;
> > -	struct ib_mr *mr;
> > -};
> >   static void rds_ib_odp_mr_worker(struct work_struct *work);
> 
>
Dr. David Alan Gilbert July 21, 2024, 11:02 a.m. UTC | #8
* Leon Romanovsky (leon@kernel.org) wrote:
> On Sat, Jul 20, 2024 at 12:28:17AM +0000, Dr. David Alan Gilbert wrote:
> > * Allison Henderson (allison.henderson@oracle.com) wrote:
> > > On Sat, 2024-06-01 at 00:33 +0100, linux@treblig.org wrote:
> > > > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > > > 
> > > > 'rds_ib_dereg_odp_mr' has been unused since the original
> > > > commit 2eafa1746f17 ("net/rds: Handle ODP mr
> > > > registration/unregistration").
> > > > 
> > > > Remove it.
> > > > 
> > > > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> > > 
> > > This patch looks fine to me, the struct is indeed unused at this point.
> > > Thanks for the clean up!
> > > 
> > > Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
> > 
> > Hi,
> >   Does anyone know who might pick this one up - I don't think
> > it's in -next yet?
> 
> 1. We are in merge window and this patch is not a bug fix, so it should
>    wait until the next merge window.

Yeh I did wonder; it was posted and reviewed back at the start of June.

> 2. Title should be net/rds ... and not RDMA/rds ...

OK, I can easily fix that.

> 3. netdev is closed right now, so it should be resubmitted after next merge
>    window ends.

When you say 'resubmitted' - you mean reposted to the lists with the amended
title? Or what?

Dave

> Thanks
>
Leon Romanovsky July 21, 2024, 12:06 p.m. UTC | #9
On Sun, Jul 21, 2024 at 11:02:49AM +0000, Dr. David Alan Gilbert wrote:
> * Leon Romanovsky (leon@kernel.org) wrote:
> > On Sat, Jul 20, 2024 at 12:28:17AM +0000, Dr. David Alan Gilbert wrote:
> > > * Allison Henderson (allison.henderson@oracle.com) wrote:
> > > > On Sat, 2024-06-01 at 00:33 +0100, linux@treblig.org wrote:
> > > > > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > > > > 
> > > > > 'rds_ib_dereg_odp_mr' has been unused since the original
> > > > > commit 2eafa1746f17 ("net/rds: Handle ODP mr
> > > > > registration/unregistration").
> > > > > 
> > > > > Remove it.
> > > > > 
> > > > > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> > > > 
> > > > This patch looks fine to me, the struct is indeed unused at this point.
> > > > Thanks for the clean up!
> > > > 
> > > > Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
> > > 
> > > Hi,
> > >   Does anyone know who might pick this one up - I don't think
> > > it's in -next yet?
> > 
> > 1. We are in merge window and this patch is not a bug fix, so it should
> >    wait until the next merge window.
> 
> Yeh I did wonder; it was posted and reviewed back at the start of June.
> 
> > 2. Title should be net/rds ... and not RDMA/rds ...
> 
> OK, I can easily fix that.
> 
> > 3. netdev is closed right now, so it should be resubmitted after next merge
> >    window ends.
> 
> When you say 'resubmitted' - you mean reposted to the lists with the amended
> title? Or what?

Yes, reposted to the netdev@ ML with the correct title.

Thanks

> 
> Dave
> 
> > Thanks
> > 
> -- 
>  -----Open up your eyes, open up your mind, open up your code -------   
> / Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
> \        dave @ treblig.org |                               | In Hex /
>  \ _________________________|_____ http://www.treblig.org   |_______/
Dr. David Alan Gilbert July 29, 2024, 9:01 p.m. UTC | #10
* Leon Romanovsky (leon@kernel.org) wrote:
> On Sun, Jul 21, 2024 at 11:02:49AM +0000, Dr. David Alan Gilbert wrote:
> > * Leon Romanovsky (leon@kernel.org) wrote:
> > > On Sat, Jul 20, 2024 at 12:28:17AM +0000, Dr. David Alan Gilbert wrote:
> > > > * Allison Henderson (allison.henderson@oracle.com) wrote:
> > > > > On Sat, 2024-06-01 at 00:33 +0100, linux@treblig.org wrote:
> > > > > > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > > > > > 
> > > > > > 'rds_ib_dereg_odp_mr' has been unused since the original
> > > > > > commit 2eafa1746f17 ("net/rds: Handle ODP mr
> > > > > > registration/unregistration").
> > > > > > 
> > > > > > Remove it.
> > > > > > 
> > > > > > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> > > > > 
> > > > > This patch looks fine to me, the struct is indeed unused at this point.
> > > > > Thanks for the clean up!
> > > > > 
> > > > > Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
> > > > 
> > > > Hi,
> > > >   Does anyone know who might pick this one up - I don't think
> > > > it's in -next yet?
> > > 
> > > 1. We are in merge window and this patch is not a bug fix, so it should
> > >    wait until the next merge window.
> > 
> > Yeh I did wonder; it was posted and reviewed back at the start of June.
> > 
> > > 2. Title should be net/rds ... and not RDMA/rds ...
> > 
> > OK, I can easily fix that.
> > 
> > > 3. netdev is closed right now, so it should be resubmitted after next merge
> > >    window ends.
> > 
> > When you say 'resubmitted' - you mean reposted to the lists with the amended
> > title? Or what?
> 
> Yes, reposted to the netdev@ ML with the correct title.

OK, reposted as
Message-ID: 20240729210114.48522-1-linux@treblig.org

Dave

> Thanks
> 
> > 
> > Dave
> > 
> > > Thanks
> > > 
> > -- 
> >  -----Open up your eyes, open up your mind, open up your code -------   
> > / Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
> > \        dave @ treblig.org |                               | In Hex /
> >  \ _________________________|_____ http://www.treblig.org   |_______/
>
diff mbox series

Patch

diff --git a/net/rds/ib_rdma.c b/net/rds/ib_rdma.c
index 8f070ee7e742..d1cfceeff133 100644
--- a/net/rds/ib_rdma.c
+++ b/net/rds/ib_rdma.c
@@ -40,10 +40,6 @@ 
 #include "rds.h"
 
 struct workqueue_struct *rds_ib_mr_wq;
-struct rds_ib_dereg_odp_mr {
-	struct work_struct work;
-	struct ib_mr *mr;
-};
 
 static void rds_ib_odp_mr_worker(struct work_struct *work);