On Sun, Sep 4, 2022 at 4:26 PM Gal Rosen <gal.rosen@xxxxxxxxxxxxxx> wrote: > > Hi, > > I am using a single reader thread from an Fanotify file descriptor. > The reader thread pushes file events into a queue. > There are multiple worker threads which pop from the queue and do some actions on the file path (like file scanning for viruses). > We have been told by the third party we are working with for the scanning API that we are scanning the same file path in parallel with 2 different objects. > Is it possible to get multiple events on the same file path before response on the first event ? > Yes, there is nothing preventing that. Multiple threads opening the same file will result in multiple FAN_OPEN_PERM events, each with a different event->pid. Thanks, Amir.