raw-posix: Implement .bdrv_co_preadv/pwritev
commit9d52aa3c38484703c05e791bac1ff588588a217c
authorKevin Wolf <kwolf@redhat.com>
Fri, 3 Jun 2016 15:36:27 +0000 (3 17:36 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 16 Jun 2016 13:19:55 +0000 (16 15:19 +0200)
treef3936cee7f30b44a358085479958b3b1d525293e
parent2174f12bdeb3974141784e14bbb7ad8c53178cd9
raw-posix: Implement .bdrv_co_preadv/pwritev

The raw-posix block driver actually supports byte-aligned requests now
on non-O_DIRECT images, like it already (and previously incorrectly)
claimed in bs->request_alignment.

For some block drivers this means that a RMW cycle can be avoided when
they write sub-sector metadata e.g. for cluster allocation.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
block/linux-aio.c
block/raw-aio.h
block/raw-posix.c