linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] RCU Tasks fix for systems with non-power-of-two numbers of CPUs
@ 2022-01-28 14:32 Paul E. McKenney
  2022-01-28 17:35 ` pr-tracker-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Paul E. McKenney @ 2022-01-28 14:32 UTC (permalink / raw)
  To: torvalds
  Cc: linux-kernel, rcu, andrii.nakryiko, kafai, neeraj.iitr10,
	Mark.Rutland, hca, kernel-team

Hello, Linus,

This pull request fixes a brown-paper-bag bug in RCU tasks that
causes things like BPF and ftrace to fail miserably on systems with
non-power-of-two numbers of CPUs.

And yes, I will be adding non-power-of-two scenarios to rcutorture,
in case you were wondering.  But that can wait for v5.19.

The following changes since commit e783362eb54cd99b2cac8b3a9aeac942e6f6ac07:

  Linux 5.17-rc1 (2022-01-23 10:12:53 +0200)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git tags/rcu-urgent.2022.01.26a

for you to fetch changes up to da123016ca8cb5697366c0b2dd55059b976e67e4:

  rcu-tasks: Fix computation of CPU-to-list shift counts (2022-01-26 13:04:05 -0800)

----------------------------------------------------------------
Urgent RCU pull request for v5.17

This pull request fixes a math error added in 7a30871b6a27 ("rcu-tasks:
Introduce ->percpu_enqueue_shift for dynamic queue selection') during the
v5.17 merge window.  This commit works correctly only on systems with a
power-of-two number of CPUs, which just so happens to be the kind that
rcutorture always uses by default.

This pull request fixes the math so that things also work on systems
that don't happen to have a power-of-two number of CPUs.

----------------------------------------------------------------
Paul E. McKenney (1):
      rcu-tasks: Fix computation of CPU-to-list shift counts

 kernel/rcu/tasks.h | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

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

* Re: [GIT PULL] RCU Tasks fix for systems with non-power-of-two numbers of CPUs
  2022-01-28 14:32 [GIT PULL] RCU Tasks fix for systems with non-power-of-two numbers of CPUs Paul E. McKenney
@ 2022-01-28 17:35 ` pr-tracker-bot
  0 siblings, 0 replies; 2+ messages in thread
From: pr-tracker-bot @ 2022-01-28 17:35 UTC (permalink / raw)
  To: Paul E. McKenney
  Cc: torvalds, linux-kernel, rcu, andrii.nakryiko, kafai,
	neeraj.iitr10, Mark.Rutland, hca, kernel-team

The pull request you sent on Fri, 28 Jan 2022 06:32:51 -0800:

> git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git tags/rcu-urgent.2022.01.26a

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/a773abf72eb0cac008743891068ca6edecc44683

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html

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

end of thread, other threads:[~2022-01-28 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-28 14:32 [GIT PULL] RCU Tasks fix for systems with non-power-of-two numbers of CPUs Paul E. McKenney
2022-01-28 17:35 ` pr-tracker-bot

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