]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix NULL pointer after aborting a transaction
authorLiu Bo <bo.li.liu@oracle.com>
Wed, 27 Feb 2013 13:28:25 +0000 (13:28 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Thu, 28 Feb 2013 18:33:52 +0000 (13:33 -0500)
commitb09b46fd88c98ef28b3fea78998cdfb4d730f2e6
tree88330927384b9ff597f6330a000e463079c02846
parentf352a046b15ee3154ed9c55af8e921a9fcc1ca11
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>
fs/btrfs/transaction.c