• Bob Peterson's avatar
    gfs2: Delay withdraw from atomic context · fffe9bee
    Bob Peterson authored
    Before this patch, if function __gfs2_ail_flush detected an error
    syncing the ail list, it call gfs2_ail_error which called gfs2_withdraw.
    Since __gfs2_ail_flush deals with a specific glock, we shouldn't withdraw
    immediately because the withdraw code (signal_our_withdraw) uses glocks
    in its processing.
    
    This patch changes the call from gfs2_withdraw to gfs2_withdraw_delayed
    which defers the withdraw until a more appropriate context, such as the
    logd daemon, discovers the intent to withdraw.
    Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
    fffe9bee
glops.c 21.3 KB