]> git.hungrycats.org Git - linux/commitdiff
Btrfs: add missing blk_finish_plug in btrfs_sync_log()
authorForrest Liu <forrestl@synology.com>
Fri, 30 Jan 2015 11:42:12 +0000 (19:42 +0800)
committerSasha Levin <alexander.levin@verizon.com>
Thu, 6 Oct 2016 02:40:20 +0000 (22:40 -0400)
[ Upstream commit 3da5ab56482f322a9736c484db8773899c5c731b ]

Add missing blk_finish_plug in btrfs_sync_log()

Signed-off-by: Forrest Liu <forrestl@synology.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
fs/btrfs/tree-log.c

index f6c20cf6090ebdad93faaf31fd44a6fda1cc62da..0b976fa1dae6ad51a2263e2aaaa1c9acda8565b6 100644 (file)
@@ -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;