]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Simplify set_affinity_pending refcounts
authorPeter Zijlstra <peterz@infradead.org>
Wed, 24 Feb 2021 10:42:08 +0000 (11:42 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Mar 2021 11:40:21 +0000 (12:40 +0100)
commitcde343fd633c3af28fb3bc6b7b9042b3f68cb0df
tree4cd7d82723c949bb83bcc20eb9d6fe762e1914f2
parent0a55f4b513accec98778fa7ad75f9b7d014bb778
sched: Simplify set_affinity_pending refcounts

Now that we have set_affinity_pending::stop_pending to indicate if a
stopper is in progress, and we have the guarantee that if that stopper
exists, it will (eventually) complete our @pending we can simplify the
refcount scheme by no longer counting the stopper thread.

Fixes: eb1a3d51263b ("sched: Fix migrate_disable() vs set_cpus_allowed_ptr()")
Cc: stable@kernel.org
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Link: https://lkml.kernel.org/r/20210224131355.724130207@infradead.org
kernel/sched/core.c