From: Liu Bo Date: Wed, 27 Feb 2013 13:28:25 +0000 (+0000) Subject: Btrfs: fix NULL pointer after aborting a transaction X-Git-Tag: v3.9-rc1~17^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f094ac32aba3a51c00e970a2ea029339af2ca048;p=pandora-kernel.git 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 Signed-off-by: Josef Bacik --- Reading git-diff-tree failed