fsnotify: lock annotation for event replacement
authorEric Paris <eparis@redhat.com>
Fri, 18 Dec 2009 02:24:22 +0000 (21:24 -0500)
committerEric Paris <eparis@redhat.com>
Wed, 28 Jul 2010 13:58:50 +0000 (09:58 -0400)
commitcac69dad32899c6f4c66bb4f9baf69b0d3c7d3d1
tree326019945bfe57024b4e55dd0aa031cdb4413e30
parent1201a5361b9bd6512ae01e6f2b7aa79d458cafb1
fsnotify: lock annotation for event replacement

fsnotify_replace_event need to lock both the old and the new event.  This
causes lockdep to get all pissed off since it dosn't know this is safe.
It's safe in this case since the new event is impossible to be reached from
other places in the kernel.

Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/notification.c