sched: Constrain locks in sched_submit_work()
authorPeter Zijlstra <peterz@infradead.org>
Fri, 8 Sep 2023 16:22:48 +0000 (18:22 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 20 Sep 2023 07:31:11 +0000 (09:31 +0200)
commit28bc55f654de49f6122c7475b01b5d5ef4bdf0d4
treee64652db817f2983d86425749a8f712de5886067
parenta432b7c0cf420dbf2448c6bda6a6697afbb153d5
sched: Constrain locks in sched_submit_work()

Even though sched_submit_work() is ran from preemptible context,
it is discouraged to have it use blocking locks due to the recursion
potential.

Enforce this.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20230908162254.999499-2-bigeasy@linutronix.de
kernel/sched/core.c