From: Forrest Liu Date: Fri, 30 Jan 2015 11:42:12 +0000 (+0800) Subject: Btrfs: add missing blk_finish_plug in btrfs_sync_log() X-Git-Tag: v3.16.39~95 X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc892cbf66a6b1af1eb8ffa9a00914ba488223b0;p=linux Btrfs: add missing blk_finish_plug in btrfs_sync_log() commit 3da5ab56482f322a9736c484db8773899c5c731b upstream. Add missing blk_finish_plug in btrfs_sync_log() Signed-off-by: Forrest Liu Reviewed-by: David Sterba Signed-off-by: Chris Mason Signed-off-by: Ben Hutchings --- diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 2c3fcb38068f..2f57434fd588 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c @@ -2600,6 +2600,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;