Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp942370ioo; Thu, 26 May 2022 19:56:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOX+jbf6tPIuDzuw6aJA6Pq/i+AHSxlomqx5/jVAt167IwrHQOUGISatq3sFNRXnasgIjh X-Received: by 2002:a05:6402:1341:b0:42a:f7cb:44dc with SMTP id y1-20020a056402134100b0042af7cb44dcmr42206992edw.165.1653620185942; Thu, 26 May 2022 19:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653620185; cv=none; d=google.com; s=arc-20160816; b=CrmzTYEfJp460ZVMpOs3jCiVKZCZbqMURxVBpbgCnDScG9+HyqyE0FdScytBXizosX Ivlj8DIqhR0gg0iz73Iax+5iOco3DIwdTbCQNbPdVo1l+Xa3QemtlIixM38GOh0284Sq v9YgAU7b28VckGTv0OERp5Vt0L62Xsitq303GJQ9vPLWo2nldBT4T+P13VRu66rtNcFx bMlaOuRJbXCUeFEikJieMqsA2tRHcrhlLo/KSENx1LzCCO5RLS/uuKRfr8o0Vd2UV1fM hoJ+aDcgQpSlg0Yp84Iu4ipJSoACySxja38du8KbYvFV4M0u+VYeapnu+TPwIrcjxRNS /Ocg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=tDRmsRg9eHIRMMIJkb1fiFBKJkrJH57+pbLbM0Gs91g=; b=srV4rmKXsvm3++mKwy8bY9ihNGh1BlANLhvETqb3NGzo8RccAKMQb0jF+UFvSVaDLW oxRVG3Tl0I57Aoy5z5wKYF4v5X3Lodm1DSWI3RuREOjAzlhVwHAILkpVsRjwxQE0Vb+n 1AOt9JhRwlt+B68b6zI9V75l+VpgdXChcbksjq6R3pIJ5LlMxZJ7m1Lj4zK7WjeSXseD B7sSxk2JXRyVLlIYlH9rqL1MOIOq9bGAMRdGYTVXXWR81xkwpkmF0ayLHzHAcnSEwzzS OJGsxQBHd23rIHpWWH0jNGlRGcxvmCeapI/RQOZ2HJ+bjYqu/rfi2zB1hpI5ukxd2CDq A23A== ARC-Authentication-Results: i=1; mx.google.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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a170906660600b006fef872f3c4si269994ejp.182.2022.05.26.19.56.00; Thu, 26 May 2022 19:56:25 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234462AbiEZKEE (ORCPT + 99 others); Thu, 26 May 2022 06:04:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229593AbiEZKEA (ORCPT ); Thu, 26 May 2022 06:04:00 -0400 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D461FAF337; Thu, 26 May 2022 03:03:59 -0700 (PDT) Received: by mail-wr1-f46.google.com with SMTP id k30so1514290wrd.5; Thu, 26 May 2022 03:03:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tDRmsRg9eHIRMMIJkb1fiFBKJkrJH57+pbLbM0Gs91g=; b=dyRhNK6jtTWT3zxI/mL873sTVokc1tUxdZmempgaU1FgHEb20OtgFEFYO0scFX2TQm P72yEdsfxkey1z/YEN8PpSYgrlEk4rNUR2rwPj37tjTKs/0hZnScfXmHu8bHeMS6oP/i s1a6+0+hop+3HQyogY0ASd7ewUKBjNPwiLm9YjYXGC1oeSdlua9zwV0eI4odIxfybF7j CSXm41mRwGB388E1W+2vjbmvEDF1wWlS0yLG7CGjWBOQhOn07RTkVaE4E8A6PfwGAQR/ X2jINUCtNqkzjFhNrEs0mh50fEZnT43uLLQJnZZbMhxpow6l9fnUyqoOazuHZHX61aea jNHA== X-Gm-Message-State: AOAM532dV56i2Ie3Xl9z60/oMl61kl22zbANxB3euw8h43gPqSAPT8jY 7RJQWho/7WlKQF+EWKD8V0s= X-Received: by 2002:a5d:6c61:0:b0:20f:ef37:a9d0 with SMTP id r1-20020a5d6c61000000b0020fef37a9d0mr10939895wrz.140.1653559438419; Thu, 26 May 2022 03:03:58 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id 13-20020a05600c020d00b003942a244eebsm1276081wmi.48.2022.05.26.03.03.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 May 2022 03:03:57 -0700 (PDT) Date: Thu, 26 May 2022 10:03:56 +0000 From: Wei Liu To: "Michael Kelley (LINUX)" Cc: 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 Message-ID: <20220526100356.qwvc4qe2rkaja5wm@liuwe-devbox-debian-v2> References: <1653478022-26621-1-git-send-email-ssengar@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, 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 On Wed, May 25, 2022 at 01:52:01PM +0000, Michael Kelley (LINUX) wrote: > From: Saurabh Sengar Sent: Wednesday, May 25, 2022 4:27 AM > > > > 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 support > > s/reamining/remaining/ > > > pre Windows 8 OS. This patch removes these stale logic. > > This patch majorly does three things : > > > > 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. > > > > Signed-off-by: Saurabh Sengar > > --- > > v4: > > * Removed sense_buffer_size variable and used STORVSC_SENSE_BUFFER_SIZE directly > > in all places > > * Removed the comment along with sense_buffer_size and placed a more simpler > > comment for STORVSC_SENSE_BUFFER_SIZE > > * Added back WIN6 and WIN7 protocol version macros > > > > drivers/scsi/storvsc_drv.c | 155 ++++++++++--------------------------- > > 1 file changed, 39 insertions(+), 116 deletions(-) > > Reviewed-by: Michael Kelley Fixed the typo and applied to hyperv-next. Thanks.