From: Greg Thelen Date: Wed, 28 Nov 2012 21:50:44 +0000 (-0800) Subject: cgroup: fix lockdep warning for event_control X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~57^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=205a872bd6f9a9a09ef035ef1e90185a8245cc58;p=pandora-kernel.git 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: Greg Thelen Signed-off-by: Aaron Durbin Signed-off-by: Tejun Heo --- Reading git-diff-tree failed