Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4717649rwb; Tue, 17 Jan 2023 04:46:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXv4/qRYjDyMYFDOz1QLJPYUp+NDg8LmpxEKkj2V6DMlSk5jJR9i0HE2DTva/UFoRuUXihUv X-Received: by 2002:a62:aa0c:0:b0:589:8560:a39d with SMTP id e12-20020a62aa0c000000b005898560a39dmr3328642pff.0.1673959564703; Tue, 17 Jan 2023 04:46:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673959564; cv=none; d=google.com; s=arc-20160816; b=eLvLfKZ4oW/L7adWBbUFKsOK31P8IhOk+nCFEmocWzpWQtxIbDvsZmO04bDj5Q/OLE JAQFFnXpo6/M+c388xRLO5XklYmkOZpLh15UhA6QJquiM48m7CUxXERTt0ydUHDty/Y/ HLAig89fTCT7U64kSUlFjQAVqPtL6Vfy2F1wbBf9I7hNwJFjpWsRBwAGcb4uLSw3cIzl 5jE6nm5OpaWC/ViuMDsyuh0D9xJeBTBnNbC3r3prBd1Ss2BS1tsHFcrpIIaa9JMpUB47 gXLHRi7BQdlpkq1ClaNrn9FjECwC2/cIfaCjwjZBwMQT+MiiJ3ZgTi3BEW/NPekyX61E TAPw== 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:dkim-signature; bh=JN1ozIPaF36z9JF2Zbf7i9N2c+vgyVY97Zt7dr1fdoE=; b=YDAAocnTLboTWE79BHlHxs4l5HKafiBltnxohw50LGB4oCCrMi35pldEq+ZBa98gRM +e77WOojt6hI5sRPHF8BfNqdBP4M9jUGuhjTgHIQzeE3lDrIE1WQW0QLGfXXLoCy1NED 7TTVN+LBYJ7L8H18rf/d1axzxl1cO8puX4sm31qpr9DDFQ76JJsxzdFSqjbH5QwfEfY9 m2kGkBC5Vo2r3UyMCA1pzxHHXRqZs/327y1FuOwuvowKYmOFJtvBK7vyEOwYDCvYoWvG Eva1lGLrBzS0Digyc00JPpdLlvCZHyOAzFd+71H61YyPrnCMFAY8ZzyX2xIUWYk56msE uuXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JcktzRZb; 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 w126-20020a627b84000000b0058bc2deac15si11850329pfc.134.2023.01.17.04.45.59; Tue, 17 Jan 2023 04:46:04 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=JcktzRZb; 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 S236709AbjAQMAR (ORCPT + 48 others); Tue, 17 Jan 2023 07:00:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236593AbjAQMAB (ORCPT ); Tue, 17 Jan 2023 07:00:01 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C4EA36FD9; Tue, 17 Jan 2023 03:59:57 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 16A12B81187; Tue, 17 Jan 2023 11:59:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B004C433D2; Tue, 17 Jan 2023 11:59:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673956794; bh=aTQYYKmLmNf07nxBHwjaA+StqUovg0SS7JYEnCH+EZU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JcktzRZbthNjyz+5qDuk41oZMxJYCCPDkgEXy01vFYTwlnZjxjziBy/fjRBFrmcSa E+PMfnpmsxQOvk4Nnoif+2kebtJFzsk6MLmCF0naHyrUxRwLUY0egDjGMueOewYX9U jY95uj2yF2tCHsBQgxOnBrKJInMJKFTeLLsroP9Qz+Zmb5S5ohasJ2sIlHVuXyrdKU +JQlAVyRuTN0m1l13Oc+TNnPPuP7Sr59v4b9nO4VxcqClgsxIrXN9pyrNM8z/w85BT oBD2AKo9teesJp1MkdO9eUCNiMo/mj0umhmkVIhKlpMUQYQSsiQ5U2bWLoyBYl3VOM zsK3K8o3KkQoA== Date: Tue, 17 Jan 2023 13:59:51 +0200 From: Leon Romanovsky To: Chaitanya Kulkarni Cc: Jason Gunthorpe , Israel Rukshin , Bryan Tan , Christoph Hellwig , Eric Dumazet , Jakub Kicinski , Jens Axboe , Keith Busch , "linux-kernel@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "linux-rdma@vger.kernel.org" , "linux-trace-kernel@vger.kernel.org" , Masami Hiramatsu , Max Gurtovoy , "netdev@vger.kernel.org" , Paolo Abeni , Saeed Mahameed , Sagi Grimberg , Selvin Xavier , Steven Rostedt , Vishnu Dasa , Yishai Hadas Subject: Re: [PATCH rdma-next 11/13] nvme: Introduce a local variable Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Tue, Jan 17, 2023 at 12:32:59AM +0000, Chaitanya Kulkarni wrote: > On 1/16/23 05:05, Leon Romanovsky wrote: > > From: Israel Rukshin > > > > The patch doesn't change any logic. > > > > Signed-off-by: Israel Rukshin > > Signed-off-by: Leon Romanovsky > > --- > > drivers/nvme/host/core.c | 7 ++++--- > > 1 file changed, 4 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c > > index 7be562a4e1aa..51a9880db6ce 100644 > > --- a/drivers/nvme/host/core.c > > +++ b/drivers/nvme/host/core.c > > @@ -1870,6 +1870,7 @@ static void nvme_update_disk_info(struct gendisk *disk, > > sector_t capacity = nvme_lba_to_sect(ns, le64_to_cpu(id->nsze)); > > unsigned short bs = 1 << ns->lba_shift; > > u32 atomic_bs, phys_bs, io_opt = 0; > > + struct nvme_ctrl *ctrl = ns->ctrl; > > > > I don't think this patch is needed, existing code is more readable and > gives much clarity that we are accessing ctrl from namespace since we > are in nvme_update_disk_info() which is namespace based. I don't have strong opinion here. Thanks > > -ck >