diff options
author | Waiman Long <[email protected]> | 2023-04-11 09:35:57 -0400 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2023-04-12 08:23:58 -1000 |
commit | ba9182a89626d5f83c2ee4594f55cb9c1e60f0e2 (patch) | |
tree | c932a0a2c3b593f3f4d6ffd90bcffbb6dad9cdc9 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 57dcd64c7e036299ef526b400a8d12b8a2352f26 (diff) |
cgroup/cpuset: Wake up cpuset_attach_wq tasks in cpuset_cancel_attach()
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: e44193d39e8d ("cpuset: let hotplug propagation work wait for task attaching")
Signed-off-by: Waiman Long <[email protected]>
Reviewed-by: Michal Koutný <[email protected]>
Cc: [email protected] # v3.11+
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions