Re: [PATCH 2/2] fsnotify: turn fsnotify reaper thread into a workqueue job

2016-02-17 Thread Jan Kara
On Sun 14-02-16 19:15:23, Jeff Layton wrote: > 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 d

Re: [PATCH 2/2] fsnotify: turn fsnotify reaper thread into a workqueue job

2016-02-15 Thread Jeff Layton
On Mon, 15 Feb 2016 14:03:10 +0800 Eryu Guan wrote: > On Sun, Feb 14, 2016 at 07:15:23PM -0500, Jeff Layton wrote: > > 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 thrash

Re: [PATCH 2/2] fsnotify: turn fsnotify reaper thread into a workqueue job

2016-02-14 Thread Eryu Guan
On Sun, Feb 14, 2016 at 07:15:23PM -0500, Jeff Layton wrote: > 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 bei

[PATCH 2/2] fsnotify: turn fsnotify reaper thread into a workqueue job

2016-02-14 Thread Jeff Layton
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