Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4121403ioo; Wed, 25 May 2022 15:47:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgXd0/d1VLm/+7jv7pBf1HmG1i0wM28UeOED/KFjBHBKFd9D+9aWU9tG6TH/nUOVZqfOLL X-Received: by 2002:a63:874a:0:b0:3fa:dfd9:9f3d with SMTP id i71-20020a63874a000000b003fadfd99f3dmr4138490pge.310.1653518827124; Wed, 25 May 2022 15:47:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653518827; cv=pass; d=google.com; s=arc-20160816; b=e1f+di87x44cAqWHz8pTTEBpDiotxu6ddZFm//vYtg7owkSMLoX2q96ZYcLF3SRS01 0A0TlaA5bIEJU26hwiDCEY88Za2BseVYgW/b6TOSBFj3zCLmyyMOUw/THzpho61VXY0Q NHh5xoHt/JE+sLnsA0HgDlEn59UVi8c4Ci28sHYsDDSqxn+bjPUMeOEp578BJN+8vd0L 1MbeV9Z7HBqw26dHeV1HGaDR6pKzqYfcQbG5tW73b7hf0tDI1+MmsV9lQQaIvkhURsJG 646/+YGXTQ+zlw/srNPJQTJfMo9H4jJ6Lz0r82RqwU3Qe8l5eJRLafR56cHs2Gb+pjOC DPng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:to:from :dkim-signature; bh=V1vEreOQuFJX1BPYnwab/jLGY74ke3N381XsZq2sPUM=; b=HBruNkfxC0+DuJWcMy1+IAACREDHWtmle+O/zrVtN1Ku6dUPjs7/zIG6USphG7Sv2y H8Wx6p4rayIYCF8eUk8PT8kPrunOiWPXGvfDquREM+P650KIl34he4Sa5x+gyznpggdu fIOzFc6nA1/Je2QcHPd5cgr+xGlz1e/lejGwbJK9kbXQnN6odQA83U1tTVJ4sfQ4UslE Myqe0GcYAl1rluxOcoYkWRneMW8NPCk9V+Elv4zXjICKTFAfREfL+obn1IaIQh6EOlOg zYN/qnAq42SxXS02ovvtJLFYsFEtpPxOamzuCjnOhYvAFtFim+MvSPyljMqlDSROEcbW VWog== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=U8+qFUir; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m10-20020a170902db0a00b001620da7e3bfsi18327378plx.185.2022.05.25.15.46.55; Wed, 25 May 2022 15:47:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=U8+qFUir; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231254AbiEYNwK (ORCPT + 99 others); Wed, 25 May 2022 09:52:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbiEYNwH (ORCPT ); Wed, 25 May 2022 09:52:07 -0400 Received: from na01-obe.outbound.protection.outlook.com (unknown [52.101.57.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEAC887221; Wed, 25 May 2022 06:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PI5hiA3n1YZ5jm4UfqHSC+F/A3Uo2A3YNdS7etQrU8ddUJAAxQ7a067duvp2zpOaIf9Zh3kFZ0QOnqbTI/x4GZD+hYerLuT42dLRaaslMZ3jH6RAZgQCgRg02AAGxmBDTrgESRI8iiG/LtckvaMFr7/3LkhF/19Jp8BV0J4IVQ+k/gT9FSjwVKge3e2oaGBw3xQ6qzizJLVY9S0AMvyhE1VuEHSnM2jxINoL3wvO1DKmvb/ewXpnoMD+/vj3cfz3MdhMi5MTH/iIT00bTc73FKm/V0tpY4eaUAT3Q0EBsvDUxD1IgSprXIMA+nNBsTCuPh/5wuSKe/f/YiofSwUsMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=V1vEreOQuFJX1BPYnwab/jLGY74ke3N381XsZq2sPUM=; b=lE3CVGrrRtaZF11SXE5LbvqO9LFoX2SQ0Gm1zQIgU9C7ikNtracx4QCXZZlIKBkY26saajmj7fchIx/WzYnov//z6b5iDWnJsmr6Jv8JIQYMmwAa4f9Yd58HbmxRtEcWcxufvi2rfWSLpekjVxh8RIsL6dtkJ+lbse/7NQZejtcJ4Rtl8yRnaDf0uAiGj13SmH+mQyRNB5ZS8+xcIGjWoMl29OxiPTjMyYcfKQaeHJZbU3bMrHc44CUK205CThD+UuP1nWkie23GQStwNhdTtOwHsg9ez0gIu3ofL+XIzRTj0kB+CWNoawlqcs6P2HAVMbyhbsDYcbzjv38b7Ix7Zg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V1vEreOQuFJX1BPYnwab/jLGY74ke3N381XsZq2sPUM=; b=U8+qFUirbKoQqtbVwsdvoeUONvbCCRTM23kB7O+/0c0NFpoSQ/+QFBN/unUfQsCSOaWNU5Sz9OBRsfvHO2p7qWjB1iYfHC3LHsfvtEoxM0yR8iGLai/DRLTvcbeWf4L64r1EPvQBuQ/PfB04IK63qUP37VPNJRtKOAhbmZrBV8Y= Received: from PH0PR21MB3025.namprd21.prod.outlook.com (2603:10b6:510:d2::21) by CY5PR21MB3420.namprd21.prod.outlook.com (2603:10b6:930:22::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.3; Wed, 25 May 2022 13:52:02 +0000 Received: from PH0PR21MB3025.namprd21.prod.outlook.com ([fe80::3506:defe:c88a:8580]) by PH0PR21MB3025.namprd21.prod.outlook.com ([fe80::3506:defe:c88a:8580%9]) with mapi id 15.20.5314.005; Wed, 25 May 2022 13:52:01 +0000 From: "Michael Kelley (LINUX)" To: Saurabh Sengar , Saurabh Singh Sengar , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "wei.liu@kernel.org" , Dexuan Cui , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , Long Li , "linux-hyperv@vger.kernel.org" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v4] scsi: storvsc: Removing Pre Win8 related logic Thread-Topic: [PATCH v4] scsi: storvsc: Removing Pre Win8 related logic Thread-Index: AQHYcCph6JjUB5TEYECv1qJg2uIBQK0vnDwQ Date: Wed, 25 May 2022 13:52:01 +0000 Message-ID: References: <1653478022-26621-1-git-send-email-ssengar@linux.microsoft.com> In-Reply-To: <1653478022-26621-1-git-send-email-ssengar@linux.microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=aac07181-e8c7-42ad-b51b-40a37d68c60d;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2022-05-25T13:49:41Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fe498dfd-4c44-470b-d57d-08da3e55bea8 x-ms-traffictypediagnostic: CY5PR21MB3420:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6ea/9/58cAXWbxoZhr7CbDU2oVsjgGz5lNb/7dovqY5KnhcrJ4yhvt3YzPFjkKCSH3/udyq3tcbG0XfxubV8E9ESBqyQ1PJOd+n/kEK4ufiVlPAAS7EuW5+V05HZcC/ZZGve2ShB5YgP8ZG33rM7Na17uovCmz03CHC/4iS8Rps9Nbq2Chs7qiROgvMzObkVO4DBCwUt3H/oVSjJXGqbZYJ+CYiK//oLLB6hW0bznmdSTNp6oNGnpqyTsws/UFKS5l8N4VgJHi23ENPkzu4ycDFP7lQxejTF+P7rEeIE7cSlOnbgNjHZ3vEb3UXzkomsP2pQtztuG8Ue9bNA5Fyk0fIZS+Hu6o+RyfOAcXKoWiLQTiowGdNHa+ETXreW8wOfCSt5SkiKDxp7IRo9vXZ0zrYU+zIaPJQWFOPJEP+AnJ26xDw4FHdviwK3JM/dJ+aa9AxKYeFhqSK6+/kbTn3fpsM1BFQ4Pn8OX0djEPJ3boPuNN7puFXAFrJTZk0vMB01t2N0ZLbMCm7tt5RJao3L/9KJMVREHqa4WeW7pGkR6gSnBzAFnSiXht0A/y07AgJqY8Hkmyg+/OmfWFk4NAcWyV920Va5RQcmZJiTP4GnVo0B4T44MvAVyNneSgjc34YtofkowFnlNASXBjsPhwXDOl9SgisudIXapXVeKfQB+fGSvWQ86HB7RH7hobSHfqLRxPe8R7UGTcXA8Z5NROWxH87ovJH5TXXOKh33BSw0/WHvrvyi0Qnqg/akuY7o3RkddLaIKgrXppEZxgWNh5aRlA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR21MB3025.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(451199009)(186003)(508600001)(5660300002)(316002)(26005)(9686003)(8990500004)(122000001)(2906002)(83380400001)(8936002)(82960400001)(921005)(82950400001)(52536014)(71200400001)(86362001)(7696005)(6506007)(10290500003)(8676002)(38070700005)(38100700002)(33656002)(55016003)(64756008)(66476007)(66946007)(76116006)(66446008)(66556008)(110136005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?OTAjVt292Inv8Uuj1UUhkxLJryeerZ27pLyyNKbsONWX6uy8E/Vxf8vJ/mXU?= =?us-ascii?Q?YnOwCF9H0mz1oekeTqm5ivG4ElMc9XvVgVZu6CM9yF1q4i7jHv+UIqQlagvk?= =?us-ascii?Q?yKw69Ii+BuKRCgu6mB3/SaaTBx5mLn/V1myrjtadrrDHNeuG3JO3KIksfIkn?= =?us-ascii?Q?1sk9c676ZjOXZ3pbgs6UxXjXR+ygwNt0eu7Cjv6VTXn598+E+YXV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7BdjMblnW4/Nx8a8PH5cGIb4FBsGiwTE7+xJHwQ3egAxDo5ms2JZEJW+Y?= =?us-ascii?Q?tZVcT6zLhjrpPHL/F8EgGdNveNEsWbeOHBT9W3h/HkHS1MhxkPuSOIctMnKz?= =?us-ascii?Q?id9TB66Jljpfq2/ZfA3rxCbltSDkm7DQd8wYstC2kdpx/U4Yvw90AoEBrowT?= =?us-ascii?Q?58YthsNUGByWmZ9+Z76EUAZWOTdOSCCIqcaF6KrU3KaffdhBRUcIyl/i3B/w?= =?us-ascii?Q?hwd71ra4nKDGAFOUQlNOXtT5M87YvJU7RiOnpmTU3Il/QMZXJsqDrdrlSqV5?= =?us-ascii?Q?U56fLcCN737QoJ+OFnRl5DsgLAqTb5qcWCzuk8bzfVqSMmuLlPi9NSFVHM7m?= =?us-ascii?Q?AjilFCs5TGgKb1iXhCeVez5gKcgzQJmumVj8pYpKZcUwwZIUY9v8cJmZXNdd?= =?us-ascii?Q?NSylCCL7mDY2iN+SkuzDafsVg/26LEhlOrsBPZVZ4V8zTj0c/lxlueDOLvto?= =?us-ascii?Q?lHMAU9AHvLpQf5titaE6tYxVJtp3OOrSF7yl4o783PnLL/KbRDFJsLoRgi1M?= =?us-ascii?Q?krreW0bfCqL7vafWHgWnl1CCZtdQIyXqkfYViBbVIu5pRY5oZo88t3WjeI7B?= =?us-ascii?Q?KDA2MQftJryLcdSBAllUND+ETTFndXxgrsOojSPhxArsp/EstKRxjNFBJkle?= =?us-ascii?Q?TzykiHbtFxScFVzoJ3mnPQdne75hl60=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR21MB3025.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fe498dfd-4c44-470b-d57d-08da3e55bea8 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 May 2022 13:52:01.7599 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 2nK5HwNPYFwNbiLHgxC7/0btbxF+SEB318sW5ovybDjAre9uNvbHWTHm1LJVif93KFhial5NlzB2N7sHi/VrhS3rT6BQkohWOY1Em60Re/o= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR21MB3420 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Saurabh Sengar Sent: Wednesday, May 25,= 2022 4:27 AM >=20 > The latest storvsc code has already removed the support for windows 7 and > earlier. There is still some code logic reamining which is there to suppo= rt s/reamining/remaining/ > pre Windows 8 OS. This patch removes these stale logic. > This patch majorly does three things : >=20 > 1. Removes vmscsi_size_delta and its logic, as the vmscsi_request struct = is > same for all the OS post windows 8 there is no need of delta. > 2. Simplify sense_buffer_size logic, as there is single buffer size for > all the post windows 8 OS. > 3. Embed the vmscsi_win8_extension structure inside the vmscsi_request, > as there is no separate handling required for different OS. >=20 > Signed-off-by: Saurabh Sengar > --- > v4: > * Removed sense_buffer_size variable and used STORVSC_SENSE_BUFFER_SIZE d= irectly > in all places > * Removed the comment along with sense_buffer_size and placed a more simp= ler > comment for STORVSC_SENSE_BUFFER_SIZE > * Added back WIN6 and WIN7 protocol version macros >=20 > drivers/scsi/storvsc_drv.c | 155 ++++++++++--------------------------- > 1 file changed, 39 insertions(+), 116 deletions(-) Reviewed-by: Michael Kelley