• Eric Paris's avatar
    fsnotify: fix inotify tail drop check with path entries · c05594b6
    Eric Paris authored
    fsnotify drops new events when they are the same as the tail event on the
    queue to be sent to userspace.  The problem is that if the event comes with
    a path we forget to break out of the switch statement and fall into the
    code path which matches on events that do not have any type of file backed
    information (things like IN_UNMOUNT and IN_Q_OVERFLOW).  The problem is
    that this code thinks all such events should be dropped.  Fix is to add a
    break.
    Signed-off-by: default avatarEric Paris <eparis@redhat.com>
    c05594b6
notification.c 12.2 KB