• Dipankar Sarma's avatar
    [PATCH] add rcu_barrier() synchronization point · ab4720ec
    Dipankar Sarma authored
    This introduces a new interface - rcu_barrier() which waits until all
    the RCUs queued until this call have been completed.
    
    Reiser4 needs this, because we do more than just freeing memory object
    in our RCU callback: we also remove it from the list hanging off
    super-block.  This means, that before freeing reiser4-specific portion
    of super-block (during umount) we have to wait until all pending RCU
    callbacks are executed.
    
    The only change of reiser4 made to the original patch, is exporting of
    rcu_barrier().
    
    Cc: Hans Reiser <reiser@namesys.com>
    Cc: Vladimir V. Saveliev <vs@namesys.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    ab4720ec
rcupdate.c 15.9 KB