diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2015-05-01 11:03:02 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-06 08:19:39 -0700 |
commit | ca5c8866869adc54b334c53f6eedfca0885636ab (patch) | |
tree | 56f9d8dc970e5466c102244905649248645424e4 /drivers/scsi | |
parent | 70b074ddfb48d205921b4983255d59fe754c338b (diff) | |
download | lwn-ca5c8866869adc54b334c53f6eedfca0885636ab.tar.gz lwn-ca5c8866869adc54b334c53f6eedfca0885636ab.zip |
storvsc: Set the SRB flags correctly when no data transfer is needed
commit dc45708ca9988656d706940df5fd102672c5de92 upstream.
Set the SRB flags correctly when there is no data transfer. Without this
change some IHV drivers will fail valid commands such as TEST_UNIT_READY.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/storvsc_drv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 97892f258043..3bb6646bb406 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scsi/storvsc_drv.c @@ -1625,8 +1625,7 @@ static int storvsc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *scmnd) break; default: vm_srb->data_in = UNKNOWN_TYPE; - vm_srb->win8_extension.srb_flags |= (SRB_FLAGS_DATA_IN | - SRB_FLAGS_DATA_OUT); + vm_srb->win8_extension.srb_flags |= SRB_FLAGS_NO_DATA_TRANSFER; break; } |