Commit 2c074c64 authored by Waiman Long's avatar Waiman Long Committed by Treehugger Robot
Browse files

UPSTREAM: cgroup/cpuset: Wake up cpuset_attach_wq tasks in cpuset_cancel_attach()



commit ba9182a8 upstream.

After a successful cpuset_can_attach() call which increments the
attach_in_progress flag, either cpuset_cancel_attach() or cpuset_attach()
will be called later. In cpuset_attach(), tasks in cpuset_attach_wq,
if present, will be woken up at the end. That is not the case in
cpuset_cancel_attach(). So missed wakeup is possible if the attach
operation is somehow cancelled. Fix that by doing the wakeup in
cpuset_cancel_attach() as well.

Fixes: e44193d3 ("cpuset: let hotplug propagation work wait for task attaching")
Signed-off-by: default avatarWaiman Long <longman@redhat.com>
Reviewed-by: default avatarMichal Koutný <mkoutny@suse.com>
Cc: stable@vger.kernel.org # v3.11+
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I3549d57fd8b1661ac547682af4a25370c316aabe
Signed-off-by: default avatarJohn Stultz <jstultz@google.com>
parent ae103a89
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment