aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/auditsc.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2017-02-01 08:19:43 +0100
committerJan Kara <jack@suse.cz>2017-04-10 17:37:35 +0200
commit04662cab59fc3e8421fd7a0539d304d51d2750a4 (patch)
treebde9d5a97ffbe63ea7366a4aab6be9e2402a2827 /kernel/auditsc.c
parentfsnotify: Remove useless list deletion and comment (diff)
downloadlinux-dev-04662cab59fc3e8421fd7a0539d304d51d2750a4.tar.xz
linux-dev-04662cab59fc3e8421fd7a0539d304d51d2750a4.zip
fsnotify: Lock object list with connector lock
So far list of marks attached to an object (inode / vfsmount) was protected by i_lock or mnt_root->d_lock. This dictates that the list must be empty before the object can be destroyed although the list is now anchored in the fsnotify_mark_connector structure. Protect the list by a spinlock in the fsnotify_mark_connector structure to decouple lifetime of a list of marks from a lifetime of the object. This also simplifies the code quite a bit since we don't have to differentiate between inode and vfsmount lists in quite a few places anymore. Reviewed-by: Miklos Szeredi <mszeredi@redhat.com> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions