Re: [RFC][PATCH] fs: optimize inotify/fsnotify code for unwatched files
From: Peter Zijlstra
Date: Mon Jun 22 2015 - 14:52:50 EST
On Mon, Jun 22, 2015 at 08:11:21AM -0700, Paul E. McKenney wrote:
> That depends on how slow the resulting slow global state would be.
> We have some use cases (definitely KVM, perhaps also some of the VFS
> code) that need the current speed, as opposed to the profound slowness
> that three trips through synchronize_sched() would provide.
So what we have with that percpu-rwsem code that I send out earlier
today is a conditional smp_mb(), and I think we can do the same for
SRCU.
I'm just not sure !GP is common enough for all SRCU cases to be worth
doing.
Those that rely on sync_srcu() and who do it rarely would definitely
benefit. The same with those that rarely do call_srcu().
But those that heavily use call_srcu() would be better off with the
prolonged GP with 3 sync_sched() calls in.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at http://www.tux.org/lkml/