Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3556386pxp; Wed, 23 Mar 2022 00:37:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNG8YLxF0ZqfBYc4MbkoAcmQJdtdTgCHsr5fa/G7hbu4twSUrB0heh7EQbpW088uPXSABV X-Received: by 2002:a50:f19a:0:b0:418:f94c:fc24 with SMTP id x26-20020a50f19a000000b00418f94cfc24mr31602210edl.34.1648021056401; Wed, 23 Mar 2022 00:37:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648021056; cv=none; d=google.com; s=arc-20160816; b=z7XeDMb+Sy7gUEHgpnaIyUNt0N3hUqRFQmgiHYxKCJf+svXkmBL6Utr349WHZMcFun eGcJFxm+bvkfpmXvo9XG9QPYuc2vCvcg6f++cQGe2A22TbxfVzBV80GpY+vYpoa+bivE GotbtBlJv6xDS/5RqhSjwga64KytIjoR1bDIvzYKDDYmSzJFhAyC47Voe8/YrDFPsz83 HQtRpvXeQMKCLd4pgDF8oEHVD3qIOv2zJzkg4tfxC+fUOzxFs7m4mhwaDE0EczlEIaZB MCTdzbqEhCaZP1Be32QUaxBstN+cZsE6lZBmhAEVrsN11jKHS3EABwXNKV3EZUpcsnMR 0v2A== 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:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=4X77m1K3OHsCMq+EP4kM3pyd2JUn9RQEs9+CADIIQXk=; b=qkSEym+iToG6vCafUbROn/jlOXHbO5U03vQa1R6xbJMwvdxEzqCMeQIMM1WZ0qPlrD m3Dw4KYUpPY+XqsvuHA5QK4sFAxReJZ2J9ph6pJZoSb0fJaxnjlxoUA1qk5vIl9pLVQ+ F6Nyik8yB0hVcKsgu4StPCplliPsgYkWj+0YIZ4fjp3Z4PT3Hi/GkKY7bHXhdfGETXvj HzQaUSL60lRJsNGoZdOAekd17BD1YQeEqsqq3oYJ2OKMIMQkfy7Gk9LGodRJcI41Bws5 hDKQf6u6GL0dfgo1LGEAXUBJLQSxwPViiBZy+gMDPW7pw/HfY+mmskG9H/RfTyBevhfD UAQA== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g22-20020a17090670d600b006df76385ea3si11046938ejk.835.2022.03.23.00.37.09; Wed, 23 Mar 2022 00:37:36 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237881AbiCVOjd (ORCPT + 99 others); Tue, 22 Mar 2022 10:39:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235142AbiCVOj3 (ORCPT ); Tue, 22 Mar 2022 10:39:29 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 233A82BB3A; Tue, 22 Mar 2022 07:37:59 -0700 (PDT) Received: from fraeml736-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4KNDYZ3XpGz67PDP; Tue, 22 Mar 2022 22:35:46 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml736-chm.china.huawei.com (10.206.15.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 22 Mar 2022 15:37:57 +0100 Received: from [10.47.85.68] (10.47.85.68) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 22 Mar 2022 14:37:56 +0000 Message-ID: <5d33aa82-ed40-f4fb-a60d-99adc0f367ed@huawei.com> Date: Tue, 22 Mar 2022 14:37:55 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH 04/11] scsi: libsas: Send SMP commands through the block layer To: Christoph Hellwig CC: , , , , , , , , , , , , , References: <1647945585-197349-1-git-send-email-john.garry@huawei.com> <1647945585-197349-5-git-send-email-john.garry@huawei.com> <20220322112331.GD29270@lst.de> From: John Garry In-Reply-To: <20220322112331.GD29270@lst.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.85.68] X-ClientProxiedBy: lhreml730-chm.china.huawei.com (10.201.108.81) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,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 22/03/2022 11:23, Christoph Hellwig wrote: > Wouldn't it make more sense to have a new member in th Scsi_Host_template > that gets called for these request early from ->queue_rq instead of the > new request_queue and custome ops? I had something like this before, but it also has its disadvantages. Let me revisit. > > FYI, I think reusing the block layer for all these command is a good > idea but the way it is done here seems a bit ugly and not very > maintainable. > Cheers, John