Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14151055rwb; Sun, 27 Nov 2022 18:40:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf6+g6Jwk2OZf6Tjkb9vgH/bI77Tt0JBt1E4jqfakrCPy3b2g0eehbuUpmSta/3PgoqOXSX0 X-Received: by 2002:a17:906:5f85:b0:7bc:6bb7:41c1 with SMTP id a5-20020a1709065f8500b007bc6bb741c1mr12322993eju.353.1669603249710; Sun, 27 Nov 2022 18:40:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669603249; cv=none; d=google.com; s=arc-20160816; b=tCTF7Bt2VMGMv5sz1Ic1YlFqlGt0SHblHJ5wajX34TQAaW9AY1xFCkXy2KXdxD3qk+ rQgV8sLCOPDKkNpZ7evY8CJXaqQsc3IQA3duom9IqmRIM/8JpbNEo3PaBH6UOYxq97dM ZMN5G1iGcORDoE7iuyhAMqjLGIGX4+6UFr0ATBEdoRvCuPFQkF+3febh5j/KHphDsidB FTjqGSqTr5JtSjgJI/2iXPdvATewEo5xgYJXyMycqB52JcrhHmepLmZyHtJCbcIBpqUg bDFAYo9zEWvNnCj98bDSLbLV6hr4qIpHhPM+PslyxxfmcRB8U5J6ThNWuVNZHJ61ph9c iPsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Mn4A9EI1JUQs8bOnQ9nq5+ceJdlXZp9lpMq2wkCfhWU=; b=HzHZKc65NUdrN9vEr7s5SiDVe9AEZEtyR8rtDqZBaHbpVoWAi7uaLvc+bvtFuAAibi BH4j1wbXS1EuuYJBfi9XojpWAjpYz019eITehqrfPX6LfwPNavIMw4AVvfYue0objAXA 5RY0ZqB7RMZ3rG16BmZf/UQIvrlUg5bVZeV4gSbj97XwGGsr2keBXx1BaIRv3HXIxuxt 3Zv0Ng5ORbvLqbT8gz5iTWiXLrlIOCNeEQhMLvlpCYLqUOyq+sSbJljbwz2N6MAK1DM4 BKtFiRNmLq+5oVhYDJudkD1mbFipsNe9PzxmjpMC/rPxD6o0ckyV9zFZ+pC1kH3DcpBM DgEw== 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 sc34-20020a1709078a2200b007808f3f4cbcsi10385847ejc.239.2022.11.27.18.40.27; Sun, 27 Nov 2022 18:40:49 -0800 (PST) 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 S229641AbiK1C0n (ORCPT + 85 others); Sun, 27 Nov 2022 21:26:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbiK1C0m (ORCPT ); Sun, 27 Nov 2022 21:26:42 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91574D2C4; Sun, 27 Nov 2022 18:26:40 -0800 (PST) Received: from canpemm500004.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NL8Pp25LBzqSgr; Mon, 28 Nov 2022 10:22:38 +0800 (CST) Received: from [10.174.179.14] (10.174.179.14) by canpemm500004.china.huawei.com (7.192.104.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 28 Nov 2022 10:26:38 +0800 Subject: Re: [PATCH RFC] scsi: core: remove unsed 'restarts' from scsi_device To: Yu Kuai , , , CC: , , , "yukuai (C)" References: <20221118113052.1324140-1-yukuai1@huaweicloud.com> From: Jason Yan Message-ID: <9a8a1930-80bf-13f1-5512-124be01fcc99@huawei.com> Date: Mon, 28 Nov 2022 10:26:37 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="gbk"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.14] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500004.china.huawei.com (7.192.104.92) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 2022/11/26 16:54, Yu Kuai wrote: > Hi, > > ?? 2022/11/18 19:30, Yu Kuai ะด??: >> From: Yu Kuai >> >> During code review, I found that 'restarts' is not useful anymore after >> the following commits: >> >> 1) commit ab3cee3762e5 ("blk-mq: In blk_mq_dispatch_rq_list() "no budget" >> is a reason to kick") >> 2) commit d3b38596875d ("blk-mq: run queue no matter whether the request >> is the last request") >> 3) commit 673235f91531 ("scsi: core: Fix race between handling >> STS_RESOURCE >> and completion") >> >> Now that if get budget ever failed, block layer will make sure to >> trigger new run queue for the hctx. Hence there is no need to run queue >> from scsi layer in this case. >> > > Does anyone has suggestions about this patch? > > More info why I tried to remove this: > > while testing megaraid with 4 nvme with none elevator, the default > queue_depth is 128, while I test it with fio 128 jobs and 1 iodepth, > bw is about 4Gib/s, however, if I test with 128 jobs and 2 iodepth, > bw is decreased to about 0.8Gib/s, and with this patch applied, > bw can stay 4Gib/s in the later case. > Hi Yu Kuai, This information should be included in the commit message. Thanks, Jason