]> git.baikalelectronics.ru Git - 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)
commit30fad952ad8a17930262c23983169c1c1d0c7bbe
tree060ae6e6932378afd53206a3be39266194d4003c
parent42955be8b4f0a313d57c7567b8303c5be102339f
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