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 X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4ECEBC433E0 for ; Mon, 6 Jul 2020 09:27:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2BC7820724 for ; Mon, 6 Jul 2020 09:27:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728414AbgGFJ15 (ORCPT ); Mon, 6 Jul 2020 05:27:57 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2427 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728381AbgGFJ15 (ORCPT ); Mon, 6 Jul 2020 05:27:57 -0400 Received: from lhreml724-chm.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id B9B9B6DFF9351258C0FA; Mon, 6 Jul 2020 10:27:55 +0100 (IST) Received: from [127.0.0.1] (10.47.1.142) 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.1913.5; Mon, 6 Jul 2020 10:27:53 +0100 Subject: Re: [PATCH RFC v7 10/12] megaraid_sas: switch fusion adapters to MQ To: Hannes Reinecke , Kashyap Desai , , , , , Sumit Saxena , , , , , Shivasharan Srikanteshwara CC: , , , , "PDL,MEGARAIDLINUX" References: <1591810159-240929-1-git-send-email-john.garry@huawei.com> <1591810159-240929-11-git-send-email-john.garry@huawei.com> From: John Garry Message-ID: Date: Mon, 6 Jul 2020 10:26:14 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.1.142] X-ClientProxiedBy: lhreml713-chm.china.huawei.com (10.201.108.64) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 06/07/2020 09:45, Hannes Reinecke wrote: > Originally I thought it would help for CPU hotplug, too, but typically > the internal commands are not bound to any specific CPU, When we alloc the request in scsi_get_internal_cmd() - > blk_mq_alloc_request() -> __blk_mq_alloc_request(), the request will have an associated hctx. As such, I would expect the LLDD to honor this, in that it should use the hwq associated with the hctx to send/receive the command. And from that, the hwq managed interrupt should not be shut down until the queue is drained, including internal commands. Is there something wrong with this idea? Thanks, John > so they > typically will not accounted for when looking at the CPU-related resources. > But that depends on the driver etc, so it's hard to give a guideline.