Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 86F6BC77B71 for ; Tue, 11 Apr 2023 07:18:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nye8weY7iV2Pm16fY2B0Oyu8AKFVYF7NnsdR53tk648=; b=h6mFUFUl+Jt9bD4Q8ZmjnaFkGh hpkr8kUVmMMvBVI3H2Go02rtO335+RIl1TRRrU8LJ2CxnsDy3ZBxFwl14kmePonnumyeQBC1LqFv0 SQz4yblh0b8RBPdR1eAqKpe3SukNuWzFL0BM5Wtl5iEC+PvCgVQBC9BQDAXrKAI/VjwSxDNEhEuPx Kl97NKIcLHKJMn839kYgobSsgiG08ZpdPcfQYt5pLquGu4LBsjrb7v8nRaEDr0+iWzCmqRrcU7mzg z6QnK5Qs3wMRTzzq6PcHPTNf4ZK62Ye7uVebwrBLHGFRwSplTn/oK/ezfrPsEDAcVjtk3VIxwqoII YDW+VeXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pm8Gx-00Ghkk-2v; Tue, 11 Apr 2023 07:18:35 +0000 Received: from smtp-out1.suse.de ([2001:67c:2178:6::1c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pm8Gv-00GhkE-0o for linux-nvme@lists.infradead.org; Tue, 11 Apr 2023 07:18:34 +0000 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 CE3F921A4B; Tue, 11 Apr 2023 07:18:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1681197511; 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=nye8weY7iV2Pm16fY2B0Oyu8AKFVYF7NnsdR53tk648=; b=qMZQGAqwBMt6KP/TcrsY47fN6OHIOXHFcuivm+kT8P+t41wHYH//6IH+Kny91O0Q3KIDxJ YqqLrx6FrCkzp4qpOPiLPOq74ccmYGp9FGfY84ST8Yei08rNHhHX/Qk4rf9HpxNEgRXWY1 qDcZNUVJc3t5WsIhIvO/SIzgzkJPgT4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1681197511; 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=nye8weY7iV2Pm16fY2B0Oyu8AKFVYF7NnsdR53tk648=; b=cnizF+cDjUAiusxP+5W7FxQ1RqzbMJYsugAes65Z/w7hAUWIQ2a2VsJiPPWFrODqQQuOo7 tiQN6JKsV+x0lhBw== 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 6E9A413638; Tue, 11 Apr 2023 07:18:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id S0PuGccJNWSxXwAAMHmgww (envelope-from ); Tue, 11 Apr 2023 07:18:31 +0000 Message-ID: Date: Tue, 11 Apr 2023 09:18:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v6 10/18] nvme: Add helper to send pr command Content-Language: en-US To: Mike Christie , bvanassche@acm.org, hch@lst.de, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, james.bottomley@hansenpartnership.com, linux-block@vger.kernel.org, dm-devel@redhat.com, snitzer@kernel.org, axboe@kernel.dk, linux-nvme@lists.infradead.org, chaitanyak@nvidia.com, kbusch@kernel.org, target-devel@vger.kernel.org References: <20230407200551.12660-1-michael.christie@oracle.com> <20230407200551.12660-11-michael.christie@oracle.com> From: Hannes Reinecke In-Reply-To: <20230407200551.12660-11-michael.christie@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230411_001833_438445_02CC0293 X-CRM114-Status: GOOD ( 12.77 ) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org On 4/7/23 22:05, Mike Christie wrote: > Move the code that checks for multipath support and sends the pr command > to a new helper so it can be used by the reservation report support added > in the next patches. > > Signed-off-by: Mike Christie > Reviewed-by: Christoph Hellwig > --- > drivers/nvme/host/pr.c | 23 ++++++++++++++--------- > 1 file changed, 14 insertions(+), 9 deletions(-) > 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: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman