Skip to contentSkip to conversation

RDMA/rds: remove unused struct 'rds_ib_dereg_odp_mr'

PATCH In review [email protected] 5 participants 11 messages May 31, 2024 – Jul 29, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDMA/rds: remove unused struct 'rds_ib_dereg_odp_mr'

From: "Dr. David Alan Gilbert" <[email protected]>

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

Remove it.

---
 net/rds/ib_rdma.c | 4 ----
 1 file changed, 4 deletions(-)
net/rds/ib_rdma.c +0 -4
index 8f070ee7e742..d1cfceeff133 100644
@@ -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);
 
Signature · 1 line
2.45.1
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · On Sat, Jun 01, 2024 at 12:33:07AM +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'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.

Quoted 4 lines

Remove it.

The above not withstanding, this looks good to me.

#2 lore raw
Quoted 9 lines · * Simon Horman ([email protected]) wrote:
Quoted 5 lines · On Sat, Jun 01, 2024 at 12:33:07AM +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'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
Quoted 8 lines
Quoted 4 lines

Remove it.

The above not withstanding, this looks good to me.

Thanks!

Dave

Signature · 4 lines
 -----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   |_______/
Reviewed-by on v1 1/1
#3 lore raw
In reply to [email protected]
Quoted 9 lines · On Sat, 2024-06-01 at 00:33 +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

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

Remove it.

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

Quoted 19 lines

---
 net/rds/ib_rdma.c | 4 ----

 1 file changed, 4 deletions(-)
net/rds/ib_rdma.c +0 -0
index 8f070ee7e742..d1cfceeff133 100644
@@ -40,10 +40,6 @@
  #include "rds.h"


 struct workqueue_struct *rds_ib_mr_wq;

net/rds/ib_rdma.c +0 -4
-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);

#4 lore raw
Quoted 7 lines · * Allison Henderson ([email protected]) wrote:
Quoted 6 lines · On Sat, 2024-06-01 at 00:33 +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

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

Quoted 8 lines
Quoted 3 lines

Remove it.

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

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

Dave

Quoted 20 lines
Quoted 19 lines

---
 net/rds/ib_rdma.c | 4 ----

 1 file changed, 4 deletions(-)
net/rds/ib_rdma.c +0 -0
index 8f070ee7e742..d1cfceeff133 100644
@@ -40,10 +40,6 @@
  #include "rds.h"


 struct workqueue_struct *rds_ib_mr_wq;

net/rds/ib_rdma.c +0 -4
-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);

Signature · 4 lines
 -----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   |_______/
Reviewed-by on v1 1/1
#9 lore raw
In reply to [email protected]
Quoted 8 lines · 在 2024/6/1 1:33, [email protected] 写道:

From: "Dr. David Alan Gilbert" <[email protected]>

'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")

Zhu Yanjun

Quoted 20 lines
---
  net/rds/ib_rdma.c | 4 ----
  1 file changed, 4 deletions(-)
net/rds/ib_rdma.c +0 -4
index 8f070ee7e742..d1cfceeff133 100644
@@ -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);
 
#5 lore raw
In reply to Dr. David Alan Gilbert
Quoted 12 lines · Dr. David Alan Gilbert
Quoted 11 lines · * Allison Henderson ([email protected]) wrote:
Quoted 9 lines · On Sat, 2024-06-01 at 00:33 +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

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

Remove it.

Quoted 8 lines
Quoted 4 lines

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

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

#10 lore raw
In reply to Zhu Yanjun
Quoted 7 lines · * Zhu Yanjun ([email protected]) wrote:
Quoted 6 lines · 在 2024/6/1 1:33, [email protected] 写道:

From: "Dr. David Alan Gilbert" <[email protected]>

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

Quoted 6 lines
Quoted 2 lines

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.

Quoted 1 line

Thanks,

Dave

Quoted 20 lines

Zhu Yanjun

Quoted 17 lines
---
  net/rds/ib_rdma.c | 4 ----
  1 file changed, 4 deletions(-)
net/rds/ib_rdma.c +0 -4
index 8f070ee7e742..d1cfceeff133 100644
@@ -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);
Signature · 4 lines
 -----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   |_______/
#6 lore raw
In reply to Leon Romanovsky
Quoted 16 lines · * Leon Romanovsky ([email protected]) wrote:
Quoted 15 lines · Dr. David Alan Gilbert
Quoted 14 lines · * Allison Henderson ([email protected]) wrote:
Quoted 9 lines · On Sat, 2024-06-01 at 00:33 +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

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

Remove it.

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

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

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.

Quoted 1 line

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

OK, I can easily fix that.

Quoted 2 lines

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

Quoted 2 lines

Thanks

Signature · 4 lines
 -----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   |_______/
#7 lore raw
Quoted 30 lines · Dr. David Alan Gilbert
Quoted 16 lines · * Leon Romanovsky ([email protected]) wrote:
Quoted 15 lines · Dr. David Alan Gilbert
Quoted 14 lines · * Allison Henderson ([email protected]) wrote:
Quoted 9 lines · On Sat, 2024-06-01 at 00:33 +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

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

Remove it.

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

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

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.

Quoted 1 line

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

Quoted 7 lines

OK, I can easily fix that.

Quoted 2 lines

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

Quoted 10 lines

Dave

Quoted 2 lines

Thanks

Signature · 4 lines
 -----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   |_______/
#8 lore raw
Quoted 33 lines · * Leon Romanovsky ([email protected]) wrote:
Quoted 32 lines · Dr. David Alan Gilbert
Quoted 16 lines · * Leon Romanovsky ([email protected]) wrote:
Quoted 15 lines · Dr. David Alan Gilbert
Quoted 14 lines · * Allison Henderson ([email protected]) wrote:
Quoted 9 lines · On Sat, 2024-06-01 at 00:33 +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

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

Remove it.

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

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

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.

Quoted 1 line

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

OK, I can easily fix that.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

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: [email protected]

Dave

Quoted 13 lines

Thanks

Quoted 10 lines

Dave

Quoted 2 lines

Thanks

Signature · 4 lines
 -----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   |_______/
Signature · 4 lines
 -----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   |_______/