• Liu Bo's avatar
    Btrfs: fix NULL pointer after aborting a transaction · f094ac32
    Liu Bo authored
    While doing cleanup work on an aborted transaction, we've set
    the global running transaction pointer to NULL _before_ waiting all
    other transaction handles to finish, so others'd hit NULL pointer
    crash when referencing the global running transaction pointer.
    
    This first sets a hint to avoid new transaction handle joining, then
    waits other existing handles to abort or finish so that we can safely
    set the above global pointer to NULL.
    Signed-off-by: default avatarLiu Bo <bo.li.liu@oracle.com>
    Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
    f094ac32
transaction.c 50.1 KB