lkml.org 
[lkml]   [2015]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] fs: optimize inotify/fsnotify code for unwatched files
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/

\
 
 \ /
  Last update: 2015-06-22 21:01    [W:0.115 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site