]> asedeno.scripts.mit.edu Git - linux.git/commit
Btrfs: fix unclosed transaction handler when the async transaction commitment fails
authorMiao Xie <miaox@cn.fujitsu.com>
Mon, 4 Mar 2013 09:45:06 +0000 (09:45 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 4 Mar 2013 21:33:22 +0000 (16:33 -0500)
commit00d71c9c17b1fd28fa54f323a29a0e23c6d3de40
treefb0ffcef82cf903fac454a19745df21485c8d5b6
parentaec8030a8745221c8658f2033b22c98528897b13
Btrfs: fix unclosed transaction handler when the async transaction commitment fails

If the async transaction commitment failed, we need close the
current transaction handler, or the current transaction will be
blocked to commit because of this orphan handler.

We fix the problem by doing sync transaction commitment, that is
to invoke btrfs_commit_transaction().

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ioctl.c