https://github.com/torvalds/linux
Revision 0918f1c309b86301605650c836ddd2021d311ae2 authored by Jeff Layton on 17 February 2016, 21:11:21 UTC, committed by Linus Torvalds on 19 February 2016, 00:23:24 UTC
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: Jeff Layton <jeff.layton@primarydata.com>
Tested-by: Eryu Guan <guaneryu@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Eric Paris <eparis@parisplace.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 13d34ac
History
Tip revision: 0918f1c309b86301605650c836ddd2021d311ae2 authored by Jeff Layton on 17 February 2016, 21:11:21 UTC
fsnotify: turn fsnotify reaper thread into a workqueue job
Tip revision: 0918f1c
File Mode Size
Kconfig -rw-r--r-- 1.3 KB
Makefile -rw-r--r-- 343 bytes
acl.c -rw-r--r-- 5.5 KB
acl.h -rw-r--r-- 1.4 KB
balloc.c -rw-r--r-- 44.5 KB
dir.c -rw-r--r-- 17.6 KB
ext2.h -rw-r--r-- 27.8 KB
file.c -rw-r--r-- 5.3 KB
ialloc.c -rw-r--r-- 18.3 KB
inode.c -rw-r--r-- 45.2 KB
ioctl.c -rw-r--r-- 4.3 KB
namei.c -rw-r--r-- 10.0 KB
super.c -rw-r--r-- 42.4 KB
symlink.c -rw-r--r-- 1.1 KB
xattr.c -rw-r--r-- 28.1 KB
xattr.h -rw-r--r-- 3.3 KB
xattr_security.c -rw-r--r-- 1.4 KB
xattr_trusted.c -rw-r--r-- 1.0 KB
xattr_user.c -rw-r--r-- 1.1 KB

back to top