]> git.karo-electronics.de Git - karo-tx-linux.git/commit
epoll: lock ep->mtx in ep_free to silence lockdep
authorEric Wong <normalperson@yhbt.net>
Wed, 20 Mar 2013 04:07:48 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Mar 2013 04:23:03 +0000 (15:23 +1100)
commitd1cabc79b47898ef564fa7156023bee39f8a7798
treeb827fba1935965dc360365bfa8e085adc28345dc
parentd9f44061b5440657f291994afed3b139162bc435
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 <normalperson@yhbt.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Davide Libenzi <davidel@xmailserver.org>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: NeilBrown <neilb@suse.de>,
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/eventpoll.c