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 DA18AC76196 for ; Tue, 11 Apr 2023 07:11:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230224AbjDKHLd (ORCPT ); Tue, 11 Apr 2023 03:11:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230157AbjDKHLZ (ORCPT ); Tue, 11 Apr 2023 03:11:25 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A56E1711; Tue, 11 Apr 2023 00:11:06 -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 D86A81FDFF; Tue, 11 Apr 2023 07:11:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1681197065; 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=+Ai4/nJD9quPvfRJgPnsjThcNw9HC1HgmSHIrqS7uKM=; b=f4ihOsXS6Y8Sm9aRJHehIPmW9I1PWJxfYZmTJyVLqcp8mlw6Fhqyys6HVQLUeqQNIV+rLA pVUkRbvKaKSP+Dh5UF/OpVOfRadOVxBqy59KnvYCme0Xoo3FbuzaZfZWIaxgDPLQaF0wyQ LHmbBAZbP2x1BD0z0pTiSUdFcISxalE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1681197065; 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=+Ai4/nJD9quPvfRJgPnsjThcNw9HC1HgmSHIrqS7uKM=; b=AJNiy9t92MG2dEqRtLAR6fBp8wsg5fKDMh9S0EHo8PwKpXPIZpZaZ7XOW5pD7DXGtfCI7B Yj7d5vONjsjZs1AQ== 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 8B99B13519; Tue, 11 Apr 2023 07:11:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 03L2IAgINWQMXAAAMHmgww (envelope-from ); Tue, 11 Apr 2023 07:11:04 +0000 Message-ID: <512a6380-6bc4-b49f-37d7-32fb7e7aa478@suse.de> Date: Tue, 11 Apr 2023 09:11:04 +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 04/18] scsi: Move sd_pr_type to scsi_common 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-5-michael.christie@oracle.com> From: Hannes Reinecke In-Reply-To: <20230407200551.12660-5-michael.christie@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org On 4/7/23 22:05, Mike Christie wrote: > LIO is going to want to do the same block to/from SCSI pr types as sd.c > so this moves the sd_pr_type helper to scsi_common and renames it. The > next patch will then also add a helper to go from the SCSI value to the > block one for use with PERSISTENT_RESERVE_IN commands. > > Signed-off-by: Mike Christie > Reviewed-by: Christoph Hellwig > Reviewed-by: Chaitanya Kulkarni > --- > drivers/scsi/scsi_common.c | 22 ++++++++++++++++++++++ > drivers/scsi/sd.c | 33 ++++++++------------------------- > include/scsi/scsi_common.h | 12 ++++++++++++ > 3 files changed, 42 insertions(+), 25 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