• Bob Peterson's avatar
    gfs2: clear ail1 list when gfs2 withdraws · 30fe70a8
    Bob Peterson authored
    This patch fixes a bug in which function gfs2_log_flush can get into
    an infinite loop when a gfs2 file system is withdrawn. The problem
    is the infinite loop "for (;;)" in gfs2_log_flush which would never
    finish because the io error and subsequent withdraw prevented the
    items from being taken off the ail list.
    
    This patch tries to clean up the mess by allowing withdraw situations
    to move not-in-flight buffer_heads to the ail2 list, where they will
    be dealt with later.
    Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
    Reviewed-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    30fe70a8
log.c 28.5 KB