We discovered some problems in the latest fsnotify/fanotify codebase with the help of a stress test (Xiong Zhou is working on upstreaming it to fstests). This series attempts to fix these. With the patch applied the stress test passes. Please review/test. Thanks, Miklos --- Miklos Szeredi (4): fsnotify: fix pinning of marks and groups fsnotify: skip unattached marks fanotify: fix fsnotify_prepare_user_wait() failure fsnotify: clean up fsnotify() fs/notify/fanotify/fanotify.c | 33 ++++++++------ fs/notify/fsnotify.c | 102 ++++++++++++++++++++---------------------- fs/notify/mark.c | 100 +++++++++++++++++++---------------------- 3 files changed, 113 insertions(+), 122 deletions(-) -- 2.5.5