These patches are in order to add support for restarting permission events which is useful for HSM use cases which are backed by a daemon to respond reliably [1]. In terms of testing, there is an additional LTP test attached which exercises releasing queue via the new api [2] [1] https://lore.kernel.org/linux-fsdevel/6za2mngeqslmqjg3icoubz37hbbxi6bi44canfsg2aajgkialt@c3ujlrjzkppr/ [2] https://github.com/ibrahim-jirdeh/ltp/commit/ec38a798b823954f5c5f801b006257ff278f523b Ibrahim Jirdeh (2): fanotify: create helper for clearing pending events fanotify: introduce restartable permission events fs/notify/fanotify/fanotify.c | 4 +- fs/notify/fanotify/fanotify.h | 10 ++ fs/notify/fanotify/fanotify_user.c | 168 +++++++++++++++++++++++++--- fs/notify/group.c | 2 + include/linux/fanotify.h | 1 + include/linux/fsnotify_backend.h | 2 + include/uapi/linux/fanotify.h | 6 + tools/include/uapi/linux/fanotify.h | 6 + 8 files changed, 180 insertions(+), 19 deletions(-) -- 2.47.3