]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: storvsc: Process unsupported MODE_SENSE_10
authorLong Li <longli@microsoft.com>
Sat, 17 Jan 2026 01:03:02 +0000 (17:03 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 17 Jan 2026 03:49:41 +0000 (22:49 -0500)
commit9eacec5d18f98f89be520eeeef4b377acee3e4b8
treecac467521332be03f51dd730051015d9b6d80d5c
parent901a5f309daba412e2a30364d7ec1492fa11c32c
scsi: storvsc: Process unsupported MODE_SENSE_10

The Hyper-V host does not support MODE_SENSE_10 and MODE_SENSE.  The
driver handles MODE_SENSE as unsupported command, but not for
MODE_SENSE_10. Add MODE_SENSE_10 to the same handling logic and return
correct code to SCSI layer.

Fixes: 89ae7d709357 ("Staging: hv: storvsc: Move the storage driver out of the staging area")
Cc: stable@kernel.org
Signed-off-by: Long Li <longli@microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Link: https://patch.msgid.link/20260117010302.294068-1-longli@linux.microsoft.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/storvsc_drv.c