Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4646361iob; Sun, 8 May 2022 20:28:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx63EaysTtHk48kZW4+KVJjclPxPVS/LLCt2pZhLtcnRyDUDtGlmakI2NKT7BJHA6c5Yo1 X-Received: by 2002:a65:400d:0:b0:39d:2213:ca72 with SMTP id f13-20020a65400d000000b0039d2213ca72mr11488243pgp.332.1652066914086; Sun, 08 May 2022 20:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652066914; cv=none; d=google.com; s=arc-20160816; b=Mf8Qh/Gi79tJaTpNYXJw2/YeWNMMFtHscwlVWWguMSpaLg0zjqQDkQMa1b9AVJADi3 EjnYuUG/DsZiWWkU3YbrQ62IMztgaMhuQV7qzLoC3Z7ssNUOq5hMQ0xSNh5Aqz7NHmwT TfQJ/9PQiSiR79zuc7GiCFpORqAJY93zP+VFVD0sLzVcrtKt1Re6fiMhgvzq8W9BMdQc LrOm1E42ZbPYqh4uZhjLUicqiORV7hNwXDun0dldfN3TANxccZUOhjU/c21P1wr9TfuG vQ2HfFw6ttL28tTdkFYeg/5Zfnl9mtGAXG4UF/EA1peHos8eDM19SBbHW/rmElYt18FR Tuqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:to:from :references:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature; bh=2SoIBM/nGSHi+WngO6YgR90ctoJWllnH/TF3i7GxVO8=; b=OcR2foNQOIMBW3yY6IXD1bRtrPTGQhrWpm5FvXFdHlmJI6hMYNIvj54K1rhJWl8MlJ C5sxyBudTjVWZFtXoHJx69GSaEHvyb4y1yRjt2UoL0tZNCWW3kuyeIEKd0evOwIjM+I5 GaxIsO5IBIsCO69HPpjDft63ObiLVNwij8aRt/xi+wvc9hB9lnS3gkV+P7lrsWFFaZuX 2KcgVw+IEM/TCTTyyRVaOuhIS+D7CcvbpMbL+QvbEtw9VTSBPnHH7rbt/tp8HuoGruc5 46n3VEMh5DWyi5+rWOxTJHyqCYLmJV5Wt01lElU1Ob9IDh7CyR2Igbq8lK/AIb7SptKy qJAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@suse.de header.s=susede2_rsa header.b=p5zbZTkW; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e19-20020a056a001a9300b00506855d333bsi12793057pfv.346.2022.05.08.20.28.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 20:28:34 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@suse.de header.s=susede2_rsa header.b=p5zbZTkW; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0CC6CA207C; Sun, 8 May 2022 20:27:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237097AbiEDRzv (ORCPT + 99 others); Wed, 4 May 2022 13:55:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359534AbiEDRkI (ORCPT ); Wed, 4 May 2022 13:40:08 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C8081C92B; Wed, 4 May 2022 10:05:52 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 20602210E5; Wed, 4 May 2022 17:05:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1651683951; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2SoIBM/nGSHi+WngO6YgR90ctoJWllnH/TF3i7GxVO8=; b=p5zbZTkWhtPC3vy3viiBUzgbyqi/1aOv58+1cxw6mwolzGFfy/tpzq2731Bc/BMlt7ZxrT 1QKBkof3+l9oDOX/H6sBjXCZciMZUf+HD975co/WRx+iLleo17GGz+XE1dPBMBv07BSw6C 3Nsl5NOp+fGDKp6pZrxcHtkLUOz2+8w= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1651683951; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2SoIBM/nGSHi+WngO6YgR90ctoJWllnH/TF3i7GxVO8=; b=muWArSGJSIncH7RiBuU9uWp1WWtpL9L0sGY6fNwZwAwYLNrI06XVl/hunISR2toeTXkRHy SFIFZilv5c/39PAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BB891131BD; Wed, 4 May 2022 17:05:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id nh+DI2mycmIuWQAAMHmgww (envelope-from ); Wed, 04 May 2022 17:05:45 +0000 Message-ID: Date: Wed, 4 May 2022 10:05:44 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH 06/16] nvmet: use blk_queue_zone_no() Content-Language: en-US References: <20220427160255.300418-1-p.raghav@samsung.com> <20220427160255.300418-7-p.raghav@samsung.com> From: Hannes Reinecke To: undisclosed-recipients:; In-Reply-To: <20220427160255.300418-7-p.raghav@samsung.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 4/27/22 09:02, Pankaj Raghav wrote: > From: Luis Chamberlain > > Instead of open coding the number of zones given a sector, use the helper > blk_queue_zone_no(). This let's us make modifications to the math if > needed in one place and adds now support for npo2 zone devices. > > Signed-off-by: Luis Chamberlain > Signed-off-by: Pankaj Raghav > --- > drivers/nvme/target/zns.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer