Re: [PATCH] rcu/srcutiny: don't return before reenabling preemption

2024-10-18 Thread Frederic Weisbecker
Le Wed, Oct 09, 2024 at 10:19:01AM -0700, Paul E. McKenney a écrit : > On Mon, Oct 07, 2024 at 12:14:15PM +0200, Michal Schmidt wrote: > > Code after the return statement is dead. Enable preemption before > > returning from srcu_drive_gp(). > > > > This will be important when/if PREEMPT_AUTO (lazy

Re: [PATCH] rcu/srcutiny: don't return before reenabling preemption

2024-10-09 Thread Paul E. McKenney
On Mon, Oct 07, 2024 at 12:14:15PM +0200, Michal Schmidt wrote: > Code after the return statement is dead. Enable preemption before > returning from srcu_drive_gp(). > > This will be important when/if PREEMPT_AUTO (lazy resched) gets merged. > > Fixes: 65b4a59557f6 ("srcu: Make Tiny SRCU explicit

[PATCH] rcu/srcutiny: don't return before reenabling preemption

2024-10-07 Thread Michal Schmidt
Code after the return statement is dead. Enable preemption before returning from srcu_drive_gp(). This will be important when/if PREEMPT_AUTO (lazy resched) gets merged. Fixes: 65b4a59557f6 ("srcu: Make Tiny SRCU explicitly disable preemption") Signed-off-by: Michal Schmidt --- kernel/rcu/srcut