public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 rcu 0/16] Lazy call_rcu() updates for v6.2
@ 2022-11-30 18:13 Paul E. McKenney
  2022-11-30 18:13 ` [PATCH rcu 01/16] rcu: Simplify rcu_init_nohz() cpumask handling Paul E. McKenney
                   ` (15 more replies)
  0 siblings, 16 replies; 40+ messages in thread
From: Paul E. McKenney @ 2022-11-30 18:13 UTC (permalink / raw)
  To: rcu; +Cc: linux-kernel, kernel-team, rostedt

Hello!

This series provides energy efficiency for nearly-idle systems by making
call_rcu() more lazy.  Several NOCB changes come along for the ride:

1.	Simplify rcu_init_nohz() cpumask handling, courtesy of Zhen Lei.

2.	Fix late wakeup when flush of bypass cblist happens, courtesy of
	"Joel Fernandes (Google)".

3.	Fix missing nocb gp wake on rcu_barrier(), courtesy of Frederic
	Weisbecker.

4.	Make call_rcu() lazy to save power, courtesy of "Joel Fernandes
	(Google)".

5.	Refactor code a bit in rcu_nocb_do_flush_bypass(), courtesy of
	"Joel Fernandes (Google)".

6.	Shrinker for lazy rcu, courtesy of Vineeth Pillai.

7.	Add laziness and kfree tests, courtesy of "Joel Fernandes
	(Google)".

8.	Use call_rcu_hurry() instead of call_rcu, courtesy of "Joel
	Fernandes (Google)".

9.	Use call_rcu_hurry() for async reader test, courtesy of "Joel
	Fernandes (Google)".

10.	Use call_rcu_hurry() where needed, courtesy of "Joel Fernandes
	(Google)".

11.	scsi/scsi_error: Use call_rcu_hurry() instead of call_rcu(),
	courtesy of Uladzislau Rezki.

12.	percpu-refcount: Use call_rcu_hurry() for atomic switch, courtesy
	of "Joel Fernandes (Google)".

13.	Make queue_rcu_work() use call_rcu_hurry(), courtesy of Uladzislau
	Rezki.

14.	Use call_rcu_hurry() instead of call_rcu(), courtesy of "Joel
	Fernandes (Google)".

15.	Use call_rcu_hurry() for dst_release(), courtesy of "Joel
	Fernandes (Google)".

16.	devinet: Reduce refcount before grace period, courtesy of Eric
	Dumazet.

Changes since v2:

o	Rename call_rcu_flush() to call_rcu_hurry() to avoid naming
	conflicts in workqueues as suggested by Tejun Heo.

o	Apply acks and reviews.

https://lore.kernel.org/all/20221122010408.GA3799268@paulmck-ThinkPad-P17-Gen-1/

Changes since v1:

o	Add more adjustments to avoid excessive laziness (#15 and
	#16 above).

o	Get appropriate Cc lines onto non-RCU patches.

https://lore.kernel.org/all/20221019225138.GA2499943@paulmck-ThinkPad-P17-Gen-1/

						Thanx, Paul

------------------------------------------------------------------------

 b/drivers/scsi/scsi_error.c |    2 
 b/include/linux/rcupdate.h  |    9 +
 b/kernel/rcu/Kconfig        |    8 +
 b/kernel/rcu/rcu.h          |    8 +
 b/kernel/rcu/rcuscale.c     |   67 +++++++++++-
 b/kernel/rcu/rcutorture.c   |   16 +-
 b/kernel/rcu/sync.c         |    2 
 b/kernel/rcu/tiny.c         |    2 
 b/kernel/rcu/tree.c         |   11 +
 b/kernel/rcu/tree.h         |    1 
 b/kernel/rcu/tree_exp.h     |    2 
 b/kernel/rcu/tree_nocb.h    |   34 +-----
 b/kernel/workqueue.c        |    2 
 b/lib/percpu-refcount.c     |    3 
 b/net/core/dst.c            |    2 
 b/net/ipv4/devinet.c        |   19 +--
 b/net/rxrpc/conn_object.c   |    2 
 kernel/rcu/rcuscale.c       |    2 
 kernel/rcu/tree.c           |  129 +++++++++++++++--------
 kernel/rcu/tree.h           |   11 +
 kernel/rcu/tree_nocb.h      |  243 ++++++++++++++++++++++++++++++++++++--------
 21 files changed, 434 insertions(+), 141 deletions(-)

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

end of thread, other threads:[~2023-03-11 17:46 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-30 18:13 [PATCH v3 rcu 0/16] Lazy call_rcu() updates for v6.2 Paul E. McKenney
2022-11-30 18:13 ` [PATCH rcu 01/16] rcu: Simplify rcu_init_nohz() cpumask handling Paul E. McKenney
2022-11-30 18:13 ` [PATCH rcu 02/16] rcu: Fix late wakeup when flush of bypass cblist happens Paul E. McKenney
2022-11-30 18:13 ` [PATCH rcu 03/16] rcu: Fix missing nocb gp wake on rcu_barrier() Paul E. McKenney
2022-11-30 18:13 ` [PATCH rcu 04/16] rcu: Make call_rcu() lazy to save power Paul E. McKenney
2022-11-30 18:13 ` [PATCH rcu 05/16] rcu: Refactor code a bit in rcu_nocb_do_flush_bypass() Paul E. McKenney
2022-11-30 18:13 ` [PATCH rcu 06/16] rcu: Shrinker for lazy rcu Paul E. McKenney
2022-11-30 18:13 ` [PATCH rcu 07/16] rcuscale: Add laziness and kfree tests Paul E. McKenney
2022-11-30 18:13 ` [PATCH rcu 08/16] rcu/sync: Use call_rcu_hurry() instead of call_rcu Paul E. McKenney
2022-11-30 18:13 ` [PATCH rcu 09/16] rcu/rcuscale: Use call_rcu_hurry() for async reader test Paul E. McKenney
2022-11-30 18:13 ` [PATCH rcu 10/16] rcu/rcutorture: Use call_rcu_hurry() where needed Paul E. McKenney
2022-11-30 18:13 ` [PATCH rcu 11/16] scsi/scsi_error: Use call_rcu_hurry() instead of call_rcu() Paul E. McKenney
2022-11-30 18:13 ` [PATCH rcu 12/16] percpu-refcount: Use call_rcu_hurry() for atomic switch Paul E. McKenney
2022-11-30 18:19   ` Joel Fernandes
2022-11-30 19:43   ` Tejun Heo
2022-11-30 21:44     ` Paul E. McKenney
2022-11-30 18:13 ` [PATCH rcu 13/16] workqueue: Make queue_rcu_work() use call_rcu_hurry() Paul E. McKenney
2022-11-30 18:18   ` Joel Fernandes
2022-11-30 19:43   ` Tejun Heo
2022-11-30 18:13 ` [PATCH rcu 14/16] rxrpc: Use call_rcu_hurry() instead of call_rcu() Paul E. McKenney
2022-11-30 18:16   ` Joel Fernandes
2022-11-30 18:37     ` Eric Dumazet
2022-11-30 21:45       ` Paul E. McKenney
2022-11-30 21:49         ` Steven Rostedt
2022-11-30 22:00           ` Paul E. McKenney
2022-11-30 19:09     ` David Howells
2022-11-30 19:20       ` Joel Fernandes
2022-11-30 21:43         ` Paul E. McKenney
2022-11-30 22:06           ` Joel Fernandes
2022-11-30 20:12       ` Paul E. McKenney
2022-11-30 22:47       ` Joel Fernandes
2022-11-30 23:05         ` David Howells
2022-11-30 23:15           ` Joel Fernandes
2023-03-11 17:46           ` Joel Fernandes
2022-11-30 18:13 ` [PATCH rcu 15/16] net: Use call_rcu_hurry() for dst_release() Paul E. McKenney
2022-11-30 18:16   ` Joel Fernandes
2022-11-30 18:39     ` Eric Dumazet
2022-11-30 18:50       ` Joel Fernandes
2022-11-30 21:40       ` Paul E. McKenney
2022-11-30 18:13 ` [PATCH rcu 16/16] net: devinet: Reduce refcount before grace period Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox