Drivers: scsi: storvsc: Fix a bug in handling VMBUS protocol version
authorK. Y. Srinivasan <kys@microsoft.com>
Sat, 12 Jul 2014 16:48:29 +0000 (09:48 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:17:03 +0000 (17:17 -0400)
commitadb6f9e1a8c6af1037232b59edb11277471537ea
tree45fe417ada211b198c71623b4608c47c96888f0b
parent8caf92d80526f3d7cc96831ec18b384ebcaccdf0
Drivers: scsi: storvsc: Fix a bug in handling VMBUS protocol version

Based on the negotiated VMBUS protocol version, we adjust the size of the storage
protocol messages. The two sizes we currently handle are pre-win8 and post-win8.
In WS2012 R2, we are negotiating higher VMBUS protocol version than the win8
version. Make adjustments to correctly handle this.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/storvsc_drv.c