• Bob Peterson's avatar
    gfs2: Dequeue waiters when withdrawn · 053640a7
    Bob Peterson authored
    When a withdraw occurs, ordinary (not system) glocks may not be granted
    anymore. Later, when the file system is unmounted, gfs2_gl_hash_clear()
    tries to clear out all the glocks, but these un-grantable pending
    waiters prevent some glocks from being freed. So the unmount hangs, at
    least for its ten-minute timeout period.
    
    This patch takes measures to remove any pending waiters from
    the glocks that will never be granted. This allows the unmount to
    proceed in a reasonable period of time.
    Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
    Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    053640a7
glock.h 11 KB