• Andrew Morton's avatar
    [PATCH] JBD: fix log_start_commit race · fba1fdee
    Andrew Morton authored
    In start_this_handle() the caller does not have a handle ref pinning the
    transaction open, and so the call to log_start_commit() is racy because some
    other CPU could take the transaction into commit state independently.
    
    Fix that by holding j_state_lock (which pins j_running_transaction) across
    the log_start_commit() call.
    fba1fdee
transaction.c 61.6 KB