Btrfs: fix a possible deadlock between scrub and transaction committing
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Wed, 19 Feb 2014 11:24:16 +0000 (19:24 +0800)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:16:52 +0000 (15:16 -0400)
commit6cf7f77e6ba55cc1469aaf795507d274402892e9
tree28066f51e6443d9468a11e28c13dab155e239e2c
parent886322e8e787604731e782d36c34327a8970bda9
Btrfs: fix a possible deadlock between scrub and transaction committing

btrfs_scrub_continue() will be called when cleaning up transaction.However,
this can only be called if btrfs_scrub_pause() is called before.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/transaction.c