block/iscsi: optimize WRITE10/16 if cache.writeback is not set
authorPeter Lieven <pl@kamp.de>
Thu, 16 Apr 2015 14:08:29 +0000 (16:08 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Apr 2015 13:36:10 +0000 (15:36 +0200)
commit73b5394e2e4af3bbe01e221fa395373facc67f78
tree657310d107c3a8bda43775252c7495b24e1f94bb
parent752ce45150d3d70aabc4eb46a7a9cdfd8b4640fd
block/iscsi: optimize WRITE10/16 if cache.writeback is not set

SCSI allowes to tell the target to not return from a write command
if the date is not written to the disk. Use this so called FUA
bit if it is supported to optimize WRITE commands if writeback is
not allowed.

In this case qemu always issues a WRITE followed by a FLUSH. This
is 2 round trip times. If we set the FUA bit we can ignore the
following FLUSH.

Signed-off-by: Peter Lieven <pl@kamp.de>
Message-id: 1429193313-4263-6-git-send-email-pl@kamp.de
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/iscsi.c