diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-09-21 02:26:29 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-20 15:49:08 (GMT) |
commit | 15c7298ad21e91b0ac7e3fcf753b036d178f8c7e (patch) | |
tree | 0b3e2e6129a2793ec205abba31e9487cf56caadb /fs/btrfs/transaction.c | |
parent | 794d0e92d22e8dd6495d22674272e17fd3cc33fa (diff) | |
download | linux-fsl-qoriq-15c7298ad21e91b0ac7e3fcf753b036d178f8c7e.tar.xz |
Btrfs: reset intwrite on transaction abort
commit e0228285a8cad70e4b7b4833cc650e36ecd8de89 upstream.
If we abort a transaction in the middle of a commit we weren't undoing the
intwrite locking. This patch fixes that problem.
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/btrfs/transaction.c')
-rw-r--r-- | fs/btrfs/transaction.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 8c81bdc..7138d6a 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -1552,6 +1552,8 @@ static void cleanup_transaction(struct btrfs_trans_handle *trans, root->fs_info->running_transaction = NULL; spin_unlock(&root->fs_info->trans_lock); + if (trans->type & __TRANS_FREEZABLE) + sb_end_intwrite(root->fs_info->sb); put_transaction(cur_trans); put_transaction(cur_trans); |