]> git.baikalelectronics.ru Git - kernel.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)
commit3530538d9662bb967c26e0113e6e4587018682c1
treefb0ffcef82cf903fac454a19745df21485c8d5b6
parent204ff1e63ada770f5b38ec17fefc5e615b2916f5
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