Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3029234pxp; Tue, 22 Mar 2022 10:34:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7lWZhGvlRGWxICBI8DofhbGl/Znj7lkPa1pTAFzUpXo+u46p8zJt01Jc1/V1uAuFZGOW3 X-Received: by 2002:a17:902:ca0b:b0:153:b9f5:83b6 with SMTP id w11-20020a170902ca0b00b00153b9f583b6mr19597426pld.166.1647970477431; Tue, 22 Mar 2022 10:34:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647970477; cv=none; d=google.com; s=arc-20160816; b=wqsRPWn8rFgKv4g1xmJoMmhUHVyp782BaZ80QvuaxR/Njb0l4eMfjc+cLwDWEeIHAN p4gKsZzM4t54thx2WuepXbydF4g4rC3bpF+40OJQwTYbcjsoXYNhOYzRCqQ2d8cSh456 JjWj2zErpNdBNFlCIOwsdhRTe/0OMfWZq2FDWpqov6ZAncUjS6R8swAKCK+tO7fC1aGO 0LctmjxW2anFBR0U1U7fW0AnVYysd64r7iZSQVLlbtMXk2yqRVe6lF18IhOcM7xK2AZh deSZpofr2dFG31B0+Qf3nmD5K9+6IYKwU7HoW2nnjnuc+s/zGNu0zzisnOEPooLAmcyR PPUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ZGuvWRSjWZF90dLQL+BPmDSZR3bObhPWH3zAtxBBUiY=; b=XB+HR478i41C2DCZSmaMhS96VXJJYZgMpnWjv70/M/ph6hd6EIKl5QXrVlV8BGjVIQ xnMTlMXalBliM5iw/L+117uGKwOLwr41jc7p2x+5yNSk8GJDSMb162+ODk7jJ8IV+gPa T1U/61RQJfYvFQCkJrjfxIxu794IU94tqOatnCJh0DPn/ZDQJOAGbA9vs3VyeRKJYdtq v7mdA65KsfkBHWeswfhuCuOjsNEisstA73Ho9LeYUKVMkEtovk9u+HtF+uknq1S8SGpn onUaEXeF6jAOsBk44ScqFE8e1uRn5oHGHV2pq9tLaCVjsQDHehaJBkuwTH1Pho3WZkIx OcsQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nv7-20020a17090b1b4700b001c6fd746c71si3176934pjb.119.2022.03.22.10.34.22; Tue, 22 Mar 2022 10:34:37 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234103AbiCVLVf (ORCPT + 99 others); Tue, 22 Mar 2022 07:21:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231368AbiCVLVd (ORCPT ); Tue, 22 Mar 2022 07:21:33 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 511BE710F4; Tue, 22 Mar 2022 04:20:06 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 5B40968AFE; Tue, 22 Mar 2022 12:20:03 +0100 (CET) Date: Tue, 22 Mar 2022 12:20:03 +0100 From: Christoph Hellwig To: John Garry Cc: axboe@kernel.dk, damien.lemoal@opensource.wdc.com, bvanassche@acm.org, jejb@linux.ibm.com, martin.petersen@oracle.com, hch@lst.de, ming.lei@redhat.com, hare@suse.de, chenxiang66@hisilicon.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, dm-devel@redhat.com, beanhuo@micron.com Subject: Re: [PATCH 02/11] scsi: core: Add SUBMITTED_BY_SCSI_CUSTOM_OPS Message-ID: <20220322112003.GB29270@lst.de> References: <1647945585-197349-1-git-send-email-john.garry@huawei.com> <1647945585-197349-3-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1647945585-197349-3-git-send-email-john.garry@huawei.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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, Mar 22, 2022 at 06:39:36PM +0800, John Garry wrote: > Add a new type of submitter, SUBMITTED_BY_SCSI_CUSTOM_OPS, for when a > SCSI cmnd is submitted via the block layer but not by scsi_queue_rq(). > > Since this is not a true SCSI cmnd we should do nothing for it in > scsi_done_internal(). CUSTOM_OPS sounds weird. I think the naming should match the naming of whatever is used to submit it (haven't read the remaining patches yet). And this should probably be folded into the patch that actually uses it.