diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2013-02-27 14:28:25 +0100 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-02-28 19:33:52 +0100 |
commit | f094ac32aba3a51c00e970a2ea029339af2ca048 (patch) | |
tree | 88330927384b9ff597f6330a000e463079c02846 /lib/ts_kmp.c | |
parent | Btrfs: fix memory leak of log roots (diff) | |
download | linux-f094ac32aba3a51c00e970a2ea029339af2ca048.tar.xz linux-f094ac32aba3a51c00e970a2ea029339af2ca048.zip |
Btrfs: fix NULL pointer after aborting a transaction
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: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'lib/ts_kmp.c')
0 files changed, 0 insertions, 0 deletions