aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-12-25 01:04:57 +0100
committerPeter Zijlstra <peterz@infradead.org>2022-01-18 12:09:59 +0100
commit7e406d1ff39b8ee574036418a5043c86723170cf (patch)
treebe7b54af0c125126592596a0a37b95bb3d875355 /include/linux/sched.h
parentsched/fair: Fix all kernel-doc warnings (diff)
downloadlinux-dev-7e406d1ff39b8ee574036418a5043c86723170cf.tar.xz
linux-dev-7e406d1ff39b8ee574036418a5043c86723170cf.zip
sched: Avoid double preemption in __cond_resched_*lock*()
For PREEMPT/DYNAMIC_PREEMPT the *_unlock() will already trigger a preemption, no point in then calling preempt_schedule_common() *again*. Use _cond_resched() instead, since this is a NOP for the preemptible configs while it provide a preemption point for the others. Reported-by: xuhaifeng <xuhaifeng@oppo.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/YcGnvDEYBwOiV0cR@hirez.programming.kicks-ass.net
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions