diff options
author | Jan Kara <jack@suse.cz> | 2018-10-17 12:14:52 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2018-11-12 09:54:29 -0500 |
commit | 9f16d2e6241b2fc664523f17d74adda7489f496b (patch) | |
tree | 91f476eada4a089ec4d228f9c2aca9f42798c7f2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ea956d8be91edc702a98b7fe1f9463e7ca8c42ab (diff) |
audit_tree: Remove mark->lock locking
Currently, audit_tree code uses mark->lock to protect against detaching
of mark from an inode. In most places it however also uses
mark->group->mark_mutex (as we need to atomically replace attached
marks) and this provides protection against mark detaching as well. So
just remove protection with mark->lock from audit tree code and replace
it with mark->group->mark_mutex protection in all the places. It
simplifies the code and gets rid of some ugly catches like calling
fsnotify_add_mark_locked() with mark->lock held (which cannot sleep only
because we hold a reference to another mark attached to the same inode).
Reviewed-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions