Commit a55325e1 authored by Forrest Liu's avatar Forrest Liu Committed by Sasha Levin

Btrfs: add missing blk_finish_plug in btrfs_sync_log()

[ Upstream commit 3da5ab56 ]

Add missing blk_finish_plug in btrfs_sync_log()
Signed-off-by: default avatarForrest Liu <forrestl@synology.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.cz>
Signed-off-by: default avatarChris Mason <clm@fb.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
parent f5518a3e
......@@ -2604,6 +2604,7 @@ int btrfs_sync_log(struct btrfs_trans_handle *trans,
}
if (log_root_tree->log_transid_committed >= root_log_ctx.log_transid) {
blk_finish_plug(&plug);
mutex_unlock(&log_root_tree->log_mutex);
ret = root_log_ctx.log_ret;
goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment