]> Git Repo - qemu.git/commit - block/io.c
block: Don't emulate natively supported pwritev flags
authorKevin Wolf <[email protected]>
Tue, 7 Jun 2016 13:51:28 +0000 (15:51 +0200)
committerKevin Wolf <[email protected]>
Wed, 8 Jun 2016 08:21:09 +0000 (10:21 +0200)
commit515c2f431ebe561e69c57371b2c2217792b3b820
treeba262ff553d5d4430cf29ef972c538151bd66db2
parentbf18bee547d19fde314e7b6b81f21f68b46c8a92
block: Don't emulate natively supported pwritev flags

Drivers that implement .bdrv_co_pwritev() get the flags passed as an
argument to said function, but we also unconditionally emulate the flags
anyway. We shouldn't do that.

Fix this by clearing all flags that the driver supports natively after
it returns from .bdrv_co_pwritev().

Fixes: 4df863f3 ('block: Make supported_write_flags a per-bds property')
Signed-off-by: Kevin Wolf <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
block/io.c
This page took 0.024625 seconds and 4 git commands to generate.