• Andreas Gruenbacher's avatar
    gfs2: Give up the iopen glock on contention · 8c7b9262
    Andreas Gruenbacher authored
    When there's contention on the iopen glock, it means that the link count
    of the corresponding inode has dropped to zero on a remote node which is
    now trying to delete the inode.  In that case, try to evict the inode so
    that the iopen glock will be released, which will allow the remote node
    to do its job.
    
    When the inode is still open locally, the inode's reference count won't
    drop to zero and so we'll keep holding the inode and its iopen glock.
    The remote node will time out its request to grab the iopen glock, and
    when the inode is finally closed locally, we'll try to delete it
    ourself.
    Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    8c7b9262
glock.c 63.1 KB