]> 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)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 Nov 2016 01:17:23 +0000 (01:17 +0000)
commit 3da5ab56482f322a9736c484db8773899c5c731b upstream.

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: Ben Hutchings <ben@decadent.org.uk>
fs/btrfs/tree-log.c

index 2c3fcb38068f85362ebc956678b3f022e1dc30ea..2f57434fd5883413dc9df714bae1e5cd9aff9564 100644 (file)
@@ -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;