]> git.proxmox.com Git - mirror_qemu.git/commit
block: use BDRV_O_NOCACHE instead of s->aligned_buf in raw-posix.c
authorJeff Cody <jcody@redhat.com>
Thu, 20 Sep 2012 19:13:23 +0000 (15:13 -0400)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Sep 2012 13:15:11 +0000 (15:15 +0200)
commit9acc5a06d41416400dda0ae9495707236911e234
tree3e05ee2244b0b238f20932a7c21b35704b0a5216
parent39c9fb9565613a5ca0ae6e83ea115585f91527bb
block: use BDRV_O_NOCACHE instead of s->aligned_buf in raw-posix.c

Rather than check for a non-NULL aligned_buf to determine if
raw_aio_submit needs to check for alignment, check for the presence
of BDRV_O_NOCACHE in the bs->open_flags.

Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/raw-posix.c