diff options
Diffstat (limited to 'kernel/fs/notify/fanotify/fanotify.c')
-rw-r--r-- | kernel/fs/notify/fanotify/fanotify.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/kernel/fs/notify/fanotify/fanotify.c b/kernel/fs/notify/fanotify/fanotify.c index d2f97ecca..e0e5f7c3c 100644 --- a/kernel/fs/notify/fanotify/fanotify.c +++ b/kernel/fs/notify/fanotify/fanotify.c @@ -67,18 +67,7 @@ static int fanotify_get_response(struct fsnotify_group *group, pr_debug("%s: group=%p event=%p\n", __func__, group, event); - wait_event(group->fanotify_data.access_waitq, event->response || - atomic_read(&group->fanotify_data.bypass_perm)); - - if (!event->response) { /* bypass_perm set */ - /* - * Event was canceled because group is being destroyed. Remove - * it from group's event list because we are responsible for - * freeing the permission event. - */ - fsnotify_remove_event(group, &event->fae.fse); - return 0; - } + wait_event(group->fanotify_data.access_waitq, event->response); /* userspace responded, convert to something usable */ switch (event->response) { |