From: Eric Wong Date: Tue, 30 Apr 2013 22:27:40 +0000 (-0700) Subject: epoll: lock ep->mtx in ep_free to silence lockdep X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~88^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddf676c38b56a8641c8eb9fb856fa304018ff390;p=pandora-kernel.git epoll: lock ep->mtx in ep_free to silence lockdep Technically we do not need to hold ep->mtx during ep_free since we are certain there are no other users of ep at that point. However, lockdep complains with a "suspicious rcu_dereference_check() usage!" message; so lock the mutex before ep_remove to silence the warning. Signed-off-by: Eric Wong Cc: Al Viro Cc: Arve Hjønnevåg Cc: Davide Libenzi Cc: Eric Dumazet Cc: NeilBrown , Cc: Rafael J. Wysocki Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed