Skip to content
  • Steven Whitehouse's avatar
    GFS2: Fix glock deallocation race · fc0e38da
    Steven Whitehouse authored
    
    
    This patch fixes a race in deallocating glocks which was introduced
    in the RCU glock patch. We need to ensure that the glock count is
    kept correct even in the case that there is a race to add a new
    glock into the hash table. Also, to avoid having to wait for an
    RCU grace period, the glock counter can be decremented before
    call_rcu() is called.
    
    Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
    fc0e38da