diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2013-01-15 10:29:12 +0400 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-01-24 21:51:25 +0400 |
commit | 2cba30f172afdfa00f3e844f42f21eb3b972d01c (patch) | |
tree | 8030e3d762a432f92a56151736b7f149c22454bc /fs/exofs | |
parent | 8d25a086eb104297e3ba1fdd180b04cfaaa84797 (diff) | |
download | linux-2cba30f172afdfa00f3e844f42f21eb3b972d01c.tar.xz |
Btrfs: fix missed transaction->aborted check
First, though the current transaction->aborted check can stop the commit early
and avoid unnecessary operations, it is too early, and some transaction handles
don't end, those handles may set transaction->aborted after the check.
Second, when we commit the transaction, we will wake up some worker threads to
flush the space cache and inode cache. Those threads also allocate some transaction
handles and may set transaction->aborted if some serious error happens.
So we need more check for ->aborted when committing the transaction. Fix it.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/exofs')
0 files changed, 0 insertions, 0 deletions