Boqun Feng a56ca5619f rcutorture: Update ->extendables check for lazy preemption
The rcutorture_one_extend_check() function's second last check assumes
that "preempt_count() & PREEMPT_MASK" is non-zero only if
RCUTORTURE_RDR_PREEMPT or RCUTORTURE_RDR_SCHED bit is set.

This works for preemptible RCU and for non-preemptible RCU running in
a non-preemptible kernel.  But it fails for non-preemptible RCU running
in a preemptible kernel because then rcu_read_lock() is just
preempt_disable(), which increases preempt count.

This commit therefore adjusts this check to take into account the case
fo non-preemptible RCU running in a preemptible kernel.

Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
2025-03-04 18:46:47 -08:00
..
2025-01-29 10:35:40 -08:00
2025-01-21 16:09:47 -08:00
2025-01-25 08:22:26 +00:00
2025-01-21 13:51:07 -08:00
2025-01-31 12:07:07 -08:00
2025-03-04 18:46:09 -08:00
2025-01-21 20:03:04 -08:00
2025-01-31 12:07:07 -08:00
2024-09-03 21:15:26 -07:00
2024-11-03 01:28:06 -05:00
2025-01-19 12:44:28 +08:00
2024-09-27 08:18:43 -07:00
2025-01-28 11:34:03 -08:00
2024-07-18 12:19:20 -07:00
2024-11-03 01:28:06 -05:00