linux/kernel/rcu
Peter Zijlstra c04507ac50 sched: Provide and use set_need_resched_current()
set_tsk_need_resched(current) requires set_preempt_need_resched(current) to
work correctly outside of the scheduler.

Provide set_need_resched_current() which wraps this correctly and replace
all the open coded instances.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/20251116174750.665769842@linutronix.de
2025-11-20 22:26:09 +01:00
..
Kconfig srcu: Make FORCE_NEED_SRCU_NMI_SAFE depend on RCU_EXPERT 2025-03-28 21:19:17 -07:00
Kconfig.debug rcutorture: Move RCU_TORTURE_TEST_{CHK_RDR_STATE,LOG_CPU} to bool 2025-02-05 07:14:40 -08:00
Makefile rcuperf: Change rcuperf to rcuscale 2020-08-24 18:39:24 -07:00
rcu_segcblist.c rcu/nocb: Simplify (de-)offloading state machine 2024-09-09 00:03:55 +05:30
rcu_segcblist.h rcu: Remove unused declaration rcu_segcblist_offload() 2024-10-22 15:36:56 +02:00
rcu.h Merge branches 'rcu/misc-for-6.16', 'rcu/seq-counters-for-6.16' and 'rcu/torture-for-6.16' into rcu/for-next 2025-05-16 11:18:16 -04:00
rcuscale.c mm: replace (20 - PAGE_SHIFT) with common macros for pages<->MB conversion 2025-09-13 16:54:42 -07:00
rcutorture.c rcutorture: Use kcalloc() instead of kzalloc() 2025-08-22 06:26:22 -07:00
refscale.c refperf: Set reader_tasks to NULL after kfree() 2025-09-15 05:20:09 -07:00
srcutiny.c srcu/tiny: Remove preempt_disable/enable() in srcu_gp_start_if_needed() 2025-09-15 05:16:28 -07:00
srcutree.c srcu: Document srcu_flip() memory-barrier D relation to SRCU-fast 2025-09-15 05:16:28 -07:00
sync.c rcu: Eliminate lockless accesses to rcu_sync->gp_count 2024-07-04 13:48:57 -07:00
tasks.h rcu: replace use of system_wq with system_percpu_wq 2025-09-23 02:01:18 -07:00
tiny.c sched: Provide and use set_need_resched_current() 2025-11-20 22:26:09 +01:00
tree_exp.h sched: Provide and use set_need_resched_current() 2025-11-20 22:26:09 +01:00
tree_nocb.h rcu: Fix delayed execution of hurry callbacks 2025-07-18 09:25:34 +05:30
tree_plugin.h sched: Provide and use set_need_resched_current() 2025-11-20 22:26:09 +01:00
tree_stall.h sched: Provide and use set_need_resched_current() 2025-11-20 22:26:09 +01:00
tree.c sched: Provide and use set_need_resched_current() 2025-11-20 22:26:09 +01:00
tree.h rcu: Fix racy re-initialization of irq_work causing hangs 2025-08-11 08:43:49 +05:30
update.c torture: Add dowarn argument to torture_sched_setaffinity() 2024-12-14 16:38:23 +01:00