]> 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)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Mon, 9 Feb 2015 01:27:31 +0000 (20:27 -0500)
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>
(cherry picked from commit 3da5ab56482f322a9736c484db8773899c5c731b)

fs/btrfs/tree-log.c

index 7d96cc9616631eceb719d4560205f58e225be1d2..dda8fa850b09b5498c31845f98e5f930cf0280dc 100644 (file)
@@ -2591,6 +2591,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;