• Jeff Layton's avatar
    fsnotify: destroy marks with call_srcu instead of dedicated thread · c510eff6
    Jeff Layton authored
    At the time that this code was originally written, call_srcu didn't
    exist, so this thread was required to ensure that we waited for that
    SRCU grace period to settle before finally freeing the object.
    
    It does exist now however and we can much more efficiently use call_srcu
    to handle this.  That also allows us to potentially use srcu_barrier to
    ensure that they are all of the callbacks have run before proceeding.
    In order to conserve space, we union the rcu_head with the g_list.
    
    This will be necessary for nfsd which will allocate marks from a
    dedicated slabcache.  We have to be able to ensure that all of the
    objects are destroyed before destroying the cache.  That's fairly
    Signed-off-by: default avatarJeff Layton <jeff.layton@primarydata.com>
    Cc: Eric Paris <eparis@parisplace.org>
    Reviewed-by: default avatarJan Kara <jack@suse.com>
    Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    c510eff6
Name
Last commit
Last update
..
acpi Loading commit data...
asm-generic Loading commit data...
clocksource Loading commit data...
crypto Loading commit data...
drm Loading commit data...
dt-bindings Loading commit data...
keys Loading commit data...
kvm Loading commit data...
linux Loading commit data...
math-emu Loading commit data...
media Loading commit data...
memory Loading commit data...
misc Loading commit data...
net Loading commit data...
pcmcia Loading commit data...
ras Loading commit data...
rdma Loading commit data...
rxrpc Loading commit data...
scsi Loading commit data...
soc Loading commit data...
sound Loading commit data...
target Loading commit data...
trace Loading commit data...
uapi Loading commit data...
video Loading commit data...
xen Loading commit data...
Kbuild Loading commit data...