Skip to content
Commit 0918f1c3 authored by Jeff Layton's avatar Jeff Layton Committed by Linus Torvalds
Browse files

fsnotify: turn fsnotify reaper thread into a workqueue job



We don't require a dedicated thread for fsnotify cleanup.  Switch it
over to a workqueue job instead that runs on the system_unbound_wq.

In the interest of not thrashing the queued job too often when there are
a lot of marks being removed, we delay the reaper job slightly when
queueing it, to allow several to gather on the list.

Signed-off-by: default avatarJeff Layton <jeff.layton@primarydata.com>
Tested-by: default avatarEryu Guan <guaneryu@gmail.com>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Cc: Eric Paris <eparis@parisplace.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 13d34ac6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment