Skip to content
Commit 205a872b authored by Greg Thelen's avatar Greg Thelen Committed by Tejun Heo
Browse files

cgroup: fix lockdep warning for event_control



The cgroup_event_wake() function is called with the wait queue head
locked and it takes cgrp->event_list_lock. However, in cgroup_rmdir()
remove_wait_queue() was being called after taking
cgrp->event_list_lock.  Correct the lock ordering by using a temporary
list to obtain the event list to remove from the wait queue.

Signed-off-by: default avatarGreg Thelen <gthelen@google.com>
Signed-off-by: default avatarAaron Durbin <adurbin@google.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent fddfb02a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment