diff options
author | Jeff Cody <jcody@redhat.com> | 2012-09-20 15:13:22 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-09-24 15:15:11 +0200 |
commit | 39c9fb9565613a5ca0ae6e83ea115585f91527bb (patch) | |
tree | 572e7ad7f54225aef021c9fecf1a06365d615133 /block/iscsi.c | |
parent | 6a8dc0422e508fc85390e55cbca1b93cb242d22d (diff) | |
download | qemu-39c9fb9565613a5ca0ae6e83ea115585f91527bb.zip qemu-39c9fb9565613a5ca0ae6e83ea115585f91527bb.tar.gz qemu-39c9fb9565613a5ca0ae6e83ea115585f91527bb.tar.bz2 |
block: do not parse BDRV_O_CACHE_WB in block drivers
Block drivers should ignore BDRV_O_CACHE_WB in .bdrv_open flags,
and in the bs->open_flags.
This patch removes the code, leaving the behaviour behind as if
BDRV_O_CACHE_WB was set.
Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/iscsi.c')
-rw-r--r-- | block/iscsi.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/block/iscsi.c b/block/iscsi.c index 0b96165..70cf700 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -268,10 +268,6 @@ iscsi_aio_writev(BlockDriverState *bs, int64_t sector_num, acb->task->xfer_dir = SCSI_XFER_WRITE; acb->task->cdb_size = 16; acb->task->cdb[0] = 0x8a; - if (!(bs->open_flags & BDRV_O_CACHE_WB)) { - /* set FUA on writes when cache mode is write through */ - acb->task->cdb[1] |= 0x04; - } lba = sector_qemu2lun(sector_num, iscsilun); *(uint32_t *)&acb->task->cdb[2] = htonl(lba >> 32); *(uint32_t *)&acb->task->cdb[6] = htonl(lba & 0xffffffff); |