Home
last modified time | relevance | path

Searched hist:eef3a116be11d35396efb2a8cc7345fd3221e294 (Results 1 – 2 of 2) sorted by relevance

/linux/fs/notify/
H A Dnotification.cdiff eef3a116be11d35396efb2a8cc7345fd3221e294 Mon Aug 17 03:51:44 CEST 2009 Eric Paris <eparis@redhat.com> notify: unused event private race

inotify decides if private data it passed to get added to an event was
used by checking list_empty(). But it's possible that the event may
have been dequeued and the private event removed so it would look empty.

The fix is to use the return code from fsnotify_add_notify_event rather
than looking at the list.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
/linux/fs/notify/inotify/
H A Dinotify_fsnotify.cdiff eef3a116be11d35396efb2a8cc7345fd3221e294 Mon Aug 17 03:51:44 CEST 2009 Eric Paris <eparis@redhat.com> notify: unused event private race

inotify decides if private data it passed to get added to an event was
used by checking list_empty(). But it's possible that the event may
have been dequeued and the private event removed so it would look empty.

The fix is to use the return code from fsnotify_add_notify_event rather
than looking at the list.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>