]> asedeno.scripts.mit.edu Git - linux.git/commit
fsnotify: Remove special handling of mark destruction on group shutdown
authorJan Kara <jack@suse.cz>
Wed, 21 Dec 2016 13:48:18 +0000 (14:48 +0100)
committerJan Kara <jack@suse.cz>
Mon, 10 Apr 2017 15:37:36 +0000 (17:37 +0200)
commitf09b04a03e0239f65bd964a1de758e53cf6349e8
treedc8f9b75eb2f98fee22d48e516a3734035868c69
parent6b3f05d24d355f50f3d9814304650fcab0efb482
fsnotify: Remove special handling of mark destruction on group shutdown

Currently we queue all marks for destruction on group shutdown and then
destroy them from fsnotify_destroy_group() instead from a worker thread
which is the usual path. However worker can already be processing some
list of marks to destroy so this does not make 100% all marks are really
destroyed by the time group is shut down. This isn't a big problem as
each mark holds group reference and thus group stays partially alive
until all marks are really freed but there's no point in complicating
our lives - just wait for the delayed work to be finished instead.

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