Re: [PATCH] rcu/nocb: Check rdp_gp->nocb_timer in __call_rcu_nocb_wake()

2024-01-18 Thread Paul E. McKenney
On Thu, Jan 18, 2024 at 06:51:57AM -0800, Paul E. McKenney wrote: > On Wed, Jan 17, 2024 at 01:07:25PM +0100, Frederic Weisbecker wrote: > > Le Wed, Jan 17, 2024 at 06:26:16PM +0800, Zqiang a écrit : > > > Currently, only rdp_gp->nocb_timer is used, for nocb_timer of > > > no-rdp_gp structure, the

Re: [PATCH] rcu/nocb: Check rdp_gp->nocb_timer in __call_rcu_nocb_wake()

2024-01-18 Thread Paul E. McKenney
On Wed, Jan 17, 2024 at 01:07:25PM +0100, Frederic Weisbecker wrote: > Le Wed, Jan 17, 2024 at 06:26:16PM +0800, Zqiang a écrit : > > Currently, only rdp_gp->nocb_timer is used, for nocb_timer of > > no-rdp_gp structure, the timer_pending() is always return false, > > this commit therefore need to

Re: [PATCH v4 1/4] rcu: Reduce synchronize_rcu() latency

2024-01-18 Thread Uladzislau Rezki
On Sat, Jan 13, 2024 at 12:09:51AM +0100, Frederic Weisbecker wrote: > Le Thu, Jan 04, 2024 at 05:25:07PM +0100, Uladzislau Rezki (Sony) a écrit : > > diff --git a/kernel/rcu/Kconfig.debug b/kernel/rcu/Kconfig.debug > > index 9b0b52e1836f..4812c6249185 100644 > > --- a/kernel/rcu/Kconfig.debug > >

Re: [PATCH] mm/sparsemem: fix race in accessing memory_section->usage

2024-01-18 Thread Marco Elver
On Thu, Jan 18, 2024 at 10:01AM +0100, Alexander Potapenko wrote: > > > > Hrm, rcu_read_unlock_sched_notrace() can still call > > __preempt_schedule_notrace(), which is again instrumented by KMSAN. > > > > This patch gets me a working kernel: > > [...] > > Disabling interrupts is a little heavy han

Re: [PATCH] mm/sparsemem: fix race in accessing memory_section->usage

2024-01-18 Thread Alexander Potapenko
> > Hrm, rcu_read_unlock_sched_notrace() can still call > __preempt_schedule_notrace(), which is again instrumented by KMSAN. > > This patch gets me a working kernel: > > diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h > index 4ed33b127821..2d62df462d88 100644 > --- a/include/linux/mmz