• Bob Peterson's avatar
    gfs2: flesh out delayed withdraw for gfs2_log_flush · ca399c96
    Bob Peterson authored
    Function gfs2_log_flush() had a few places where it tried to withdraw
    from the file system when errors were encountered. The problem is,
    it should delay those withdraws until the log flush lock is no longer
    held.
    
    This patch creates a new function just for delayed withdraws for
    situations like this. If errors=panic was specified on mount, we
    still want to do it the old fashioned way because the panic it does
    not help to delay in that situation.
    Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
    Reviewed-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    ca399c96
util.c 14.3 KB