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)
committerChris Mason <clm@fb.com>
Thu, 5 Feb 2015 02:02:37 +0000 (18:02 -0800)
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>
fs/btrfs/tree-log.c

index 9a02da16f2beee18f53d7244cde93f3f11cc9866..1a9585d4380a330f96ba7d82f63cb87314d1701e 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;