From nobody Sat Feb 7 13:41:43 2026 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F20F212F5A5; Wed, 7 Jan 2026 19:57:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767815833; cv=none; b=LLtGvSziD2bfLdrciQFCx2Cd/YgSOF2x35WMrDs0juTFMhiSqFUD6+H2T9yE+m/59z5FH27W1zA+Z/BYGZdrJ2w2ZRbp6PTLzUosYat7N5ZKeNidDN76yEaPkLvJA7+MySz7VzomrnkUgZRDiTjBhhay6jK5alnwb3fYxCVAWfQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767815833; c=relaxed/simple; bh=ASsd+pspub8cgMHq1IjbneKTcraE7xQvxuYHVFTSN5c=; h=From:To:Cc:Subject:Date:Message-Id; b=fArkwch2WoklMcnoiP0QzHtEQ7SITEmqpl51+nAnZ4KYinwtnY1z0rLVHV3c9ZL8tHBeTbCp3ls9fMga6EYHUuvM8/id6oBgxhE3mDC/BqcvyEkMAR2G8fZAujCOvslSawLQOiNKfZKRflwzZAFe2ng1c6v0nsHXqvJ9eQbGmgQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=aHcRHot4; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="aHcRHot4" Received: by linux.microsoft.com (Postfix, from userid 1202) id 454F8212688B; Wed, 7 Jan 2026 11:57:11 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 454F8212688B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1767815831; bh=1vUE6y/ezNfMdTpjWsRWs17aeuMCUUsyQ5gMTO1daA4=; h=From:To:Cc:Subject:Date:From; b=aHcRHot4vVlBVWmh2lhuVi1mMh2Q247AQOeEhADv3zbjpIzbl8/j6XJ5O8Vs+W16z f9yiLCOnwuKLKHISPVOOk4WLMrP5ma4SMcCxlLYraGnHCLrkK7wWS+n0t+HITQsK3x TyxR3WRc8HdCPx52jM2y+1gIZqrScAOoEygjmPC8= From: longli@linux.microsoft.com To: "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , "James E.J. Bottomley" , "Martin K. Petersen" , James Bottomley , linux-hyperv@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Long Li , stable@kernel.org Subject: [PATCH] scsi: storvsc: Process unsupported MODE_SENSE_10 Date: Wed, 7 Jan 2026 11:56:43 -0800 Message-Id: <1767815803-3747-1-git-send-email-longli@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Long Li 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 --- drivers/scsi/storvsc_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 6e4112143c76..9b15784e2d64 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scsi/storvsc_drv.c @@ -1154,6 +1154,7 @@ static void storvsc_on_io_completion(struct storvsc_d= evice *stor_device, =20 if ((stor_pkt->vm_srb.cdb[0] =3D=3D INQUIRY) || (stor_pkt->vm_srb.cdb[0] =3D=3D MODE_SENSE) || + (stor_pkt->vm_srb.cdb[0] =3D=3D MODE_SENSE_10) || (stor_pkt->vm_srb.cdb[0] =3D=3D MAINTENANCE_IN && hv_dev_is_fc(device))) { vstor_packet->vm_srb.scsi_status =3D 0; --=20 2.34.1