scsi: storvsc: Always send on the selected outgoing channel
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 27 Mar 2015 07:27:16 +0000 (00:27 -0700)
committerJames Bottomley <JBottomley@Odin.com>
Thu, 9 Apr 2015 20:22:11 +0000 (13:22 -0700)
The current code always sent packets without data on the primary channel.
Properly distribute sending of packets with no data amongst all available
channels. I would like to thank Long Li for noticing this problem.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/storvsc_drv.c

index 7f569f9711649db9b06c638c8eb7b8b6af44f6ab..0ba7f2cbbbc3e6c2616e32b5542cb200d8662f99 100644 (file)
@@ -1362,7 +1362,7 @@ static int storvsc_do_io(struct hv_device *device,
                                vmscsi_size_delta),
                                (unsigned long)request);
        } else {
-               ret = vmbus_sendpacket(device->channel, vstor_packet,
+               ret = vmbus_sendpacket(outgoing_channel, vstor_packet,
                               (sizeof(struct vstor_packet) -
                                vmscsi_size_delta),
                               (unsigned long)request,