From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFA45C77B6F for ; Tue, 11 Apr 2023 07:29:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229916AbjDKH3u (ORCPT ); Tue, 11 Apr 2023 03:29:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230088AbjDKH31 (ORCPT ); Tue, 11 Apr 2023 03:29:27 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2F722D75; Tue, 11 Apr 2023 00:29:14 -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-out2.suse.de (Postfix) with ESMTPS id 647ED1FE07; Tue, 11 Apr 2023 07:29:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1681198153; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1d30TW3PS5AZKmREIkNY88Ij0YfRYFBZCpnTnL2ftWo=; b=FCExU9r+XAwv8kUnSoMYYU/Aqo1Z3hsr5jHRd5mRJhV7cKwdw2PL+qtVDrPtjJw45E/yOo tB3epH8Zugc7s+jT3BgYyizF5MVJx0p59E0/loSajO3l5StTvgxraIUEtnfe58mX/97QRH eoMsuChgdFUuROBPhXtfe7neJMMuvKo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1681198153; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1d30TW3PS5AZKmREIkNY88Ij0YfRYFBZCpnTnL2ftWo=; b=zXot1xhDMUh63sGIDz+hKoKcWlK1AvhHCoEipuduFXkGGJ4jMfkxcJ1YWnXiyOlLi/noFR h638K4Slhq3Hb4Cg== 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 055F413638; Tue, 11 Apr 2023 07:29:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id EvsIAEkMNWQ5ZQAAMHmgww (envelope-from ); Tue, 11 Apr 2023 07:29:12 +0000 Message-ID: Date: Tue, 11 Apr 2023 09:29:12 +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 12/18] nvme: Add a nvme_pr_type enum 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 Cc: Chaitanya Kulkarni References: <20230407200551.12660-1-michael.christie@oracle.com> <20230407200551.12660-13-michael.christie@oracle.com> From: Hannes Reinecke In-Reply-To: <20230407200551.12660-13-michael.christie@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org On 4/7/23 22:05, Mike Christie wrote: > The next patch adds support to report the reservation type, so we need to > be able to convert from the NVMe PR value we get from the device to the > linux block layer PR value that will be returned to callers. To prepare > for that, this patch adds a nvme_pr_type enum and renames the nvme_pr_type > function. > > Signed-off-by: Mike Christie > Reviewed-by: Chaitanya Kulkarni > Reviewed-by: Christoph Hellwig > --- > drivers/nvme/host/pr.c | 24 ++++++++++++------------ > include/linux/nvme.h | 9 +++++++++ > 2 files changed, 21 insertions(+), 12 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