]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
Btrfs: make plug in writing meta blocks really work
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 21 Aug 2017 21:49:59 +0000 (15:49 -0600)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:56 +0000 (12:27 +0100)
commit6300463b14c1c2665674eb8f15843e5bb7a7ff84
tree060ae6e6932378afd53206a3be39266194d4003c
parentd8953d69bca83fab616f37693152384cea49f964
Btrfs: make plug in writing meta blocks really work

We have started plug in btrfs_write_and_wait_marked_extents() but the
generated IOs actually go to device's schedule IO list where the work
is doing in another task, thus the started plug doesn't make any
sense.

And since we wait for IOs immediately after writing meta blocks, it's
the same case as writing log tree, doing sync submit can merge more
IOs.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/transaction.c