diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2010-06-16 06:42:58 -0700 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-06-22 14:38:01 +0200 |
commit | 01bedebaaf9bb04138e963740a9ee6d10e18830b (patch) | |
tree | 67ab430c28c3988b9a367a9f15e049a4afd676b8 /hw/scsi-bus.c | |
parent | cada87c432e3b9cd55869a24055baf2b7bc0b70c (diff) |
scsi-bus: Add PERSISTENT_RESERVE_OUT SCSIRequest->cmd.mode setup
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>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/scsi-bus.c')
-rw-r--r-- | 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 055a94d255..3575ba30ae 100644 --- a/hw/scsi-bus.c +++ b/hw/scsi-bus.c @@ -306,6 +306,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: |