]> git.baikalelectronics.ru Git - kernel.git/commit
fanotify: Handle overflow in case of permission events
authorJan Kara <jack@suse.cz>
Fri, 21 Feb 2014 18:07:54 +0000 (19:07 +0100)
committerJan Kara <jack@suse.cz>
Tue, 25 Feb 2014 10:17:58 +0000 (11:17 +0100)
commita8feb9d3595d33387f3f7037e890721d81c361a6
treeea36241c3ff91d0ec915e6825caa2f806db938ba
parentccc6811f27d91990d185ffb542c99014b6029a49
fanotify: Handle overflow in case of permission events

If the event queue overflows when we are handling permission event, we
will never get response from userspace. So we must avoid waiting for it.
Change fsnotify_add_notify_event() to return whether overflow has
happened so that we can detect it in fanotify_handle_event() and act
accordingly.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify.c
fs/notify/notification.c