From: Jan Kara Date: Fri, 21 Feb 2014 18:07:54 +0000 (+0100) Subject: fanotify: Handle overflow in case of permission events X-Git-Tag: v3.14-rc5~19^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=482ef06c5e946aae360f247dc69471ec031e09d2;p=pandora-kernel.git 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 --- Reading git-diff-tree failed