* [Qemu-devel] [PATCH 1/2] [scsi-bus]: Add PERSISTENT_RESERVE_OUT SCSIRequest->cmd.mode setup
@ 2010-06-16 13:42 Nicholas A. Bellinger
0 siblings, 0 replies; only message in thread
From: Nicholas A. Bellinger @ 2010-06-16 13:42 UTC (permalink / raw)
To: Kevin Wolf
Cc: kvm-devel, Hannes Reinecke, qemu-devel, Nicholas Bellinger,
FUJITA Tomonori, Paul Brook, Christoph Hellwig, Gerd Hoffmann
From: Nicholas Bellinger <nab@linux-iscsi.org>
This patch updates hw/scsi-bus.c to add the PERSISTENT_RESERVE_OUT cdb
case in scsi_req_xfer_mode() to set SCSI_XFER_TO_DEV for outgoing WRITE data.
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
---
hw/scsi-bus.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c
index b8e4b71..7a5fa48 100644
--- a/hw/scsi-bus.c
+++ b/hw/scsi-bus.c
@@ -389,6 +389,7 @@ static void scsi_req_xfer_mode(SCSIRequest *req)
case MEDIUM_SCAN:
case SEND_VOLUME_TAG:
case WRITE_LONG_2:
+ case PERSISTENT_RESERVE_OUT:
req->cmd.mode = SCSI_XFER_TO_DEV;
break;
default:
--
1.5.6.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-06-16 13:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-16 13:42 [Qemu-devel] [PATCH 1/2] [scsi-bus]: Add PERSISTENT_RESERVE_OUT SCSIRequest->cmd.mode setup Nicholas A. Bellinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).