commit | ddf676c38b56a8641c8eb9fb856fa304018ff390 | [log] [tgz] |
---|---|---|
author | Eric Wong <[email protected]> | Tue Apr 30 15:27:40 2013 -0700 |
committer | Linus Torvalds <[email protected]> | Tue Apr 30 17:04:04 2013 -0700 |
tree | 1c4aed96cc3f07c2f740929811156e16126f04f6 | |
parent | eea1d585917c538d90bc26fda5d8e53796feada2 [diff] |
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 <[email protected]> Cc: Al Viro <[email protected]> Cc: Arve Hjønnevåg <[email protected]> Cc: Davide Libenzi <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: NeilBrown <[email protected]>, Cc: Rafael J. Wysocki <[email protected]> Cc: Oleg Nesterov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>