Drivers: scsi: storvsc: Filter commands based on the storage protocol version
authorK. Y. Srinivasan <kys@microsoft.com>
Sat, 12 Jul 2014 16:48:28 +0000 (09:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Sep 2014 16:19:12 +0000 (09:19 -0700)
commit1f06be182d8834d89c80c279e531296e36d3f16e
treeeccbff4f3a12d51e8c2714ee997df017efe75ed5
parentce87c6acfc090624d218e7d6c5601fd69f4538b9
Drivers: scsi: storvsc: Filter commands based on the storage protocol version

commit 8caf92d80526f3d7cc96831ec18b384ebcaccdf0 upstream.

Going forward it is possible that some of the commands that are not currently
implemented will be implemented on future Windows hosts. Even if they are not
implemented, we are told the host will corrrectly handle unsupported
commands (by returning appropriate return code and sense information).
Make command filtering depend on the host version.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/storvsc_drv.c