From: "Paul E. McKenney" <paulmck@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Zhu Yanjun <zyjzyj2000@gmail.com>, Jason Gunthorpe <jgg@ziepe.ca>,
Leon Romanovsky <leon@kernel.org>,
linux-kernel@vger.kernel.org, kernel-team@meta.com,
mingo@kernel.org, tglx@linutronix.de, rcu@vger.kernel.org
Subject: Re: [GIT PULL] RCU changes for v6.5
Date: Tue, 27 Jun 2023 11:30:46 -0700 [thread overview]
Message-ID: <fcc987bb-4ce4-4816-a909-cffa4c3f24ff@paulmck-laptop> (raw)
In-Reply-To: <CAHk-=whn4DGusRgq7ihBmu7vPBhvSDZsYN_ctef94E1rVbf5jA@mail.gmail.com>
On Tue, Jun 27, 2023 at 10:56:21AM -0700, Linus Torvalds wrote:
> On Sun, 25 Jun 2023 at 08:35, Paul E. McKenney <paulmck@kernel.org> wrote:
> >
> > git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git tags/rcu.2023.06.22a
> >
> > o Eliminate the single-argument variant of k[v]free_rcu() now
> > that all uses have been converted to k[v]free_rcu_mightsleep().
>
> Well, clearly not all users had been.
>
> The base of this RCU was v6.4-rc1, and when that commit was done, we
> still had a single-argument variant:
>
> 7e3f926bf453 ("rcu/kvfree: Eliminate k[v]free_rcu() single argument macro")
>
> but look here:
>
> git grep 'kfree_rcu([^,()][^,()]*)' 7e3f926bf453
>
> results in
>
> 7e3f926bf453:drivers/infiniband/sw/rxe/rxe_verbs.c: kfree_rcu(mr);
>
> so the RCU tree itself can not possibly have built cleanly.
>
> How the heck did this pass testing in linux-next? Did linux-next just
> assume that it was a merge error, and fix it up?
Because idiot here failed to notice that the needed change was only
in -next, and not yet in mainline.
What I needed to have done instead was to keep this commit in -next,
but not send it to mainline until the v6.6 merge window. Or maybe to
send it as a separate pull request once the rdma commit hit mainline.
> Anyway, I *did* fix it up, changing the 'kfree_rcu()' to
> 'kfree_rcu_mightsleep()', but no, this was not a merge artifact. This
> was purely "the RCU tree did not build on its own", and as a result
> the tree does not bisect cleanly if you have rdma enabled.
>
> Adding rdma people to the participants just to let them know that this
> happened, but it's not their fault. This is on the RCU tree, and lack
> of proper coverage testing.
Apologies to all for my confusion, and thank you Linus for cleaning up
my mess!
Thanx, Paul
next prev parent reply other threads:[~2023-06-27 18:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-25 15:35 Paul E. McKenney
2023-06-27 17:56 ` Linus Torvalds
2023-06-27 18:30 ` Paul E. McKenney [this message]
2023-06-28 13:34 ` Jason Gunthorpe
2023-06-28 13:46 ` Paul E. McKenney
2023-06-28 14:00 ` Jason Gunthorpe
2023-06-28 16:21 ` Paul E. McKenney
2023-06-27 18:02 ` pr-tracker-bot
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=fcc987bb-4ce4-4816-a909-cffa4c3f24ff@paulmck-laptop \
--to=paulmck@kernel.org \
--cc=jgg@ziepe.ca \
--cc=kernel-team@meta.com \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=rcu@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
--cc=zyjzyj2000@gmail.com \
/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®