Skip to contentSkip to conversation

linux-next: manual merge of the rcu tree with the rdma tree

PATCH Stephen Rothwell 3 participants 4 messages Mar 28, 2023 – May 12, 2023

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

Hi all,

FIXME: Add owner of second tree to To:
Add author(s)/SOB of conflicting commits.

Today's linux-next merge of the rcu tree got a conflict in:

drivers/infiniband/sw/rxe/rxe_mr.c

between commit:

5bf944f24129 ("RDMA/rxe: Add error messages")

from the rdma tree and commit:

330f72b82ab0 ("RDMA/rxe: Rename kfree_rcu() to kvfree_rcu_mightsleep()")

from the rcu tree.

I fixed it up (the code modified by the latter was moved by the former, so I used this files from the former and applied the following merge fix patch) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

From: Stephen Rothwell <[email protected]>
Date: Tue, 28 Mar 2023 12:12:24 +1100
Subject: [PATCH] fixup for "RDMA/rxe: Add error messages"

interacting with "RDMA/rxe: Rename kfree_rcu() to kvfree_rcu_mightsleep()"

---
 drivers/infiniband/sw/rxe/rxe_verbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/sw/rxe/rxe_verbs.c +1 -1
index 84b53c070fc5..bbdfbff5c752 100644
@@ -1341,7 +1341,7 @@ static int rxe_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata)
 	if (cleanup_err)
 		rxe_err_mr(mr, "cleanup failed, err = %d", cleanup_err);
 
-	kfree_rcu(mr);
+	kfree(mr);
 	return 0;
 
 err_out:
Signature · 5 lines
2.39.2

-- 
Cheers,
Stephen Rothwell
Reviewed-by
#1 lore raw
Quoted 43 lines · Stephen Rothwell

Hi all,

FIXME: Add owner of second tree to To:
Add author(s)/SOB of conflicting commits.

Today's linux-next merge of the rcu tree got a conflict in:

drivers/infiniband/sw/rxe/rxe_mr.c

between commit:

5bf944f24129 ("RDMA/rxe: Add error messages")

from the rdma tree and commit:

330f72b82ab0 ("RDMA/rxe: Rename kfree_rcu() to kvfree_rcu_mightsleep()")

from the rcu tree.

I fixed it up (the code modified by the latter was moved by the former, so I used this files from the former and applied the following merge fix patch) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

From: Stephen Rothwell <[email protected]>
Date: Tue, 28 Mar 2023 12:12:24 +1100
Subject: [PATCH] fixup for "RDMA/rxe: Add error messages"

interacting with "RDMA/rxe: Rename kfree_rcu() to kvfree_rcu_mightsleep()"

---
 drivers/infiniband/sw/rxe/rxe_verbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/sw/rxe/rxe_verbs.c +0 -0
index 84b53c070fc5..bbdfbff5c752 100644

drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) · line 1347

Quoted 8 lines
drivers/infiniband/sw/rxe/rxe_verbs.c +1 -1
@@ -1341,7 +1341,7 @@ static int rxe_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata)
 	if (cleanup_err)
 		rxe_err_mr(mr, "cleanup failed, err = %d", cleanup_err);
 
-	kfree_rcu(mr);
+	kfree(mr);
 	return 0;
 
 err_out:

Thanks, I thought we had already done this. If not then we should. This is the correct fix for that rcu mightsleep business.

#2 lore raw
Quoted 52 lines · Bob Pearson
Quoted 50 lines · Stephen Rothwell

Hi all,

FIXME: Add owner of second tree to To:
Add author(s)/SOB of conflicting commits.

Today's linux-next merge of the rcu tree got a conflict in:

drivers/infiniband/sw/rxe/rxe_mr.c

between commit:

5bf944f24129 ("RDMA/rxe: Add error messages")

from the rdma tree and commit:

330f72b82ab0 ("RDMA/rxe: Rename kfree_rcu() to kvfree_rcu_mightsleep()")

from the rcu tree.

I fixed it up (the code modified by the latter was moved by the former, so I used this files from the former and applied the following merge fix patch) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

From: Stephen Rothwell <[email protected]>
Date: Tue, 28 Mar 2023 12:12:24 +1100
Subject: [PATCH] fixup for "RDMA/rxe: Add error messages"

interacting with "RDMA/rxe: Rename kfree_rcu() to kvfree_rcu_mightsleep()"

---
 drivers/infiniband/sw/rxe/rxe_verbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/sw/rxe/rxe_verbs.c +1 -1
index 84b53c070fc5..bbdfbff5c752 100644
@@ -1341,7 +1341,7 @@ static int rxe_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata)
      if (cleanup_err)
              rxe_err_mr(mr, "cleanup failed, err = %d", cleanup_err);
 
-     kfree_rcu(mr);
+     kfree(mr);
      return 0;
 
Quoted 7 lines

drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) · line 1347

Quoted 1 line
drivers/infiniband/sw/rxe/rxe_verbs.c +0 -0
 err_out:

Thanks, I thought we had already done this. If not then we should. This is the correct fix for that rcu mightsleep business.

Bob, could you please squash Jon's diff into your original patch ("RDMA/rxe: Add error messages".) before you send your pull request for 6.4? Then I can just drop my patch.

That will be best. WDYT?

thanks,

- Joel

#3 lore raw

Hi all,

Quoted 58 lines · On Wed, 29 Mar 2023 15:58:20 -0400 Joel Fernandes <[email protected]>…
Quoted 48 lines · Bob Pearson
Quoted 46 lines · Stephen Rothwell

Today's linux-next merge of the rcu tree got a conflict in:

drivers/infiniband/sw/rxe/rxe_mr.c

between commit:

5bf944f24129 ("RDMA/rxe: Add error messages")

from the rdma tree and commit:

330f72b82ab0 ("RDMA/rxe: Rename kfree_rcu() to kvfree_rcu_mightsleep()")

from the rcu tree.

I fixed it up (the code modified by the latter was moved by the former, so I used this files from the former and applied the following merge fix patch) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

From: Stephen Rothwell <[email protected]>
Date: Tue, 28 Mar 2023 12:12:24 +1100
Subject: [PATCH] fixup for "RDMA/rxe: Add error messages"

interacting with "RDMA/rxe: Rename kfree_rcu() to kvfree_rcu_mightsleep()"

---
 drivers/infiniband/sw/rxe/rxe_verbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/sw/rxe/rxe_verbs.c +1 -1
index 84b53c070fc5..bbdfbff5c752 100644
@@ -1341,7 +1341,7 @@ static int rxe_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata)
      if (cleanup_err)
              rxe_err_mr(mr, "cleanup failed, err = %d", cleanup_err);
 
-     kfree_rcu(mr);
+     kfree(mr);
      return 0;
 
Quoted 7 lines

drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_dereg_mr(struct ib_mr *ibmr, struct ib_udata *udata) · line 1347

Quoted 1 line
drivers/infiniband/sw/rxe/rxe_verbs.c +0 -0
 err_out:  

Thanks, I thought we had already done this. If not then we should. This is the correct fix for that rcu mightsleep business.

Quoted 7 lines

Bob, could you please squash Jon's diff into your original patch ("RDMA/rxe: Add error messages".) before you send your pull request for 6.4? Then I can just drop my patch.

That will be best. WDYT?

thanks,

I am still applying this fix up patch to the merge of the rcu tree ...

Signature · 2 lines
Cheers,
Stephen Rothwell