fanotify: Move recalculation of inode / vfsmount mask under mark_mutex
authorJan Kara <jack@suse.cz>
Wed, 14 Dec 2016 12:53:46 +0000 (13:53 +0100)
committerJan Kara <jack@suse.cz>
Mon, 3 Apr 2017 14:56:40 +0000 (16:56 +0200)
commitc97476400d3b73376fc055e828d7388d6b9ea99a
treeb15631b7c16455ed37f52ec3b56d3dcb7ed4e35a
parent25c829afbd74fb9594d2351d9e41be05bacb9903
fanotify: Move recalculation of inode / vfsmount mask under mark_mutex

Move recalculation of inode / vfsmount notification mask under
group->mark_mutex of the mark which was modified. These are the only
places where mask recalculation happens without mark being protected
from detaching from inode / vfsmount which will cause issues with the
following patches.

Reviewed-by: Miklos Szeredi <mszeredi@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify_user.c