]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: remove root_log_ctx from ctx list before btrfs_sync_log returns
authorChris Mason <clm@fb.com>
Tue, 6 Sep 2016 12:37:40 +0000 (05:37 -0700)
committerChris Mason <clm@fb.com>
Tue, 6 Sep 2016 12:57:25 +0000 (05:57 -0700)
commit3f6bc45f909be113a14d6c91a568c2ff65ca83f0
tree437f37495624a848980f35b674bac8898c33ca68
parent0c416653a83bc1192486eb008326f15aacb161bd
Btrfs: remove root_log_ctx from ctx list before btrfs_sync_log returns

We use a btrfs_log_ctx structure to pass information into the
tree log commit, and get error values out.  It gets added to a per
log-transaction list which we walk when things go bad.

Commit d5feb5556 added an optimization to skip waiting for the log
commit, but didn't take root_log_ctx out of the list.  This
patch makes sure we remove things before exiting.

Signed-off-by: Chris Mason <clm@fb.com>
Fixes: d5feb55560d049c1f8c851130cb8a9b258d6b464
cc: stable@vger.kernel.org # 3.15+
fs/btrfs/tree-log.c