fsnotify: Pass fsnotify_iter_info into handle_event handler
Pass fsnotify_iter_info into ->handle_event() handler so that it can release and reacquire SRCU lock via fsnotify_prepare_user_wait() and fsnotify_finish_user_wait() functions. These functions also make sure current marks are appropriately pinned so that iteration protected by srcu in fsnotify() stays safe. Reviewed-by:Miklos Szeredi <mszeredi@redhat.com> Reviewed-by:
Amir Goldstein <amir73il@gmail.com> Signed-off-by:
Jan Kara <jack@suse.cz>
Showing
- fs/notify/dnotify/dnotify.c 2 additions, 1 deletionfs/notify/dnotify/dnotify.c
- fs/notify/fanotify/fanotify.c 2 additions, 1 deletionfs/notify/fanotify/fanotify.c
- fs/notify/fsnotify.c 13 additions, 6 deletionsfs/notify/fsnotify.c
- fs/notify/inotify/inotify.h 2 additions, 1 deletionfs/notify/inotify/inotify.h
- fs/notify/inotify/inotify_fsnotify.c 2 additions, 1 deletionfs/notify/inotify/inotify_fsnotify.c
- fs/notify/inotify/inotify_user.c 1 addition, 1 deletionfs/notify/inotify/inotify_user.c
- include/linux/fsnotify_backend.h 2 additions, 1 deletioninclude/linux/fsnotify_backend.h
- kernel/audit_fsnotify.c 2 additions, 1 deletionkernel/audit_fsnotify.c
- kernel/audit_tree.c 2 additions, 1 deletionkernel/audit_tree.c
- kernel/audit_watch.c 2 additions, 1 deletionkernel/audit_watch.c
Please register or sign in to comment