summaryrefslogtreecommitdiff
path: root/drivers/oprofile/oprofilefs.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2017-03-30 10:14:47 +0300
committerJan Kara <jack@suse.cz>2017-04-10 18:37:35 +0300
commit73cd3c33ab793325ebaae27fa58b4f713c16f12c (patch)
tree2ad8d08412d2627d7ff970d81ecc3c9f0ecfe241 /drivers/oprofile/oprofilefs.c
parent8212a6097a720896b4cdbe516487ad47f4296599 (diff)
downloadlinux-73cd3c33ab793325ebaae27fa58b4f713c16f12c.tar.xz
fsnotify: Avoid double locking in fsnotify_detach_from_object()
We lock object list lock in fsnotify_detach_from_object() twice - once to detach mark and second time to recalculate mask. That is unnecessary and later it will become problematic as we will free the connector as soon as there is no mark in it. So move recalculation of fsnotify mask into the same critical section that is detaching mark. This also removes recalculation of child dentry flags from fsnotify_detach_from_object(). That is however fine. Those marks will get recalculated once some event happens on a child. Reviewed-by: Miklos Szeredi <mszeredi@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'drivers/oprofile/oprofilefs.c')
0 files changed, 0 insertions, 0 deletions