Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13244426rwb; Sun, 27 Nov 2022 02:20:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Uw6g8pG86eMbMpbLcejyyh6SQfn4W90+BcbGyn3HxF532ZRnl5Sj54KCDxpDYDvvvkHFa X-Received: by 2002:a17:907:206c:b0:7be:492d:2344 with SMTP id qp12-20020a170907206c00b007be492d2344mr3831761ejb.585.1669544453765; Sun, 27 Nov 2022 02:20:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669544453; cv=none; d=google.com; s=arc-20160816; b=EisiYS3N2BgZb2X4AqRa+/XiizKhlTsiYyKTTvkwprnZF2TsXDALrShyTH5+zg71O6 LXnNDnfDaJWcmMC30MOxf50Omn0WwfrNHbwqXEmxwciZ/07nG3znt8jDcjNxmbT62Mpv 9xjB58M70Q8pjDOmWgt00mmGdnGgRVMy6GEfsOb2wiD0Fhk/91J27CeQfRjYVUI9xHHL cNuoXj7Q4WdQ29CjNP2c2WdeRR3ZcVovV4GOIZ+0GVrsj93RoFVkIKuenm4FE/3u21tO fNpFs7HKPm/cH1nqyXoDy8O+IV+oqiNpxwWWOVeqBnmDFhKjbTJNal7NZ2UexA02ONXX XKtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HZriKgT8RvIKDcrqwLOlGsqsyNg3u1Uj/dHSvWpclCY=; b=Jtau2TmhYLJoS6DVur5ZecCyU0Uo/5W9rU59CwclQjtAvpCR7u56qORVpyl3HKbzyR yeqWx9gx383Qg9nRgjlDAHRywbUM71oKqDjvaU5OR+XiFjZuRSPN5bxE5frFByY93X1I 5xfOyveOIUl1Ox7QYv01xaD/M5I9sUZcTuHlEOvht7Z8+af48Wh2h5/ZA/2Bh0Pky/OK HlioOYAgWacZFNte/VJ3299MGrIVV3fO7z86xlWzfDaQfUKbeUvivW0drcv/6tCrtPY7 FapwzrGniOS8Tno+1jYuMcW1BNawEQSjAJwmSYOwg+mSdhjyalCdcSOY4I7zqhu0W8KP kCuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UkrQwa4p; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xa3-20020a170906fd8300b0078d9f02b452si8341928ejb.861.2022.11.27.02.20.21; Sun, 27 Nov 2022 02:20:53 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UkrQwa4p; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229534AbiK0JqQ (ORCPT + 86 others); Sun, 27 Nov 2022 04:46:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbiK0JqO (ORCPT ); Sun, 27 Nov 2022 04:46:14 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC03C11C3D for ; Sun, 27 Nov 2022 01:45:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669542317; h=from:from:reply-to:subject:subject: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=HZriKgT8RvIKDcrqwLOlGsqsyNg3u1Uj/dHSvWpclCY=; b=UkrQwa4plW+hi533+nMAjOhXpB8bTmK7ZivpVzFNZd0MtqOKz6+dSIvX2qkv9FTNcJDzYM VPdZ3RKxkGpG/qVvgRRaK+Xhb9I7PGDRbDZXcq/1bdBRLXv50AKBGEOlP8QRl5pSNawWPx lalI90wLHzpANFKUnAz4i5lKadr7DzE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-478-bjLNizmdO8O7eqTRldTnRA-1; Sun, 27 Nov 2022 04:45:12 -0500 X-MC-Unique: bjLNizmdO8O7eqTRldTnRA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4161E85A588; Sun, 27 Nov 2022 09:45:12 +0000 (UTC) Received: from T590 (ovpn-8-17.pek2.redhat.com [10.72.8.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D5AC840C2087; Sun, 27 Nov 2022 09:45:07 +0000 (UTC) Date: Sun, 27 Nov 2022 17:45:02 +0800 From: Ming Lei To: Yu Kuai Cc: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, "yukuai (C)" Subject: Re: [PATCH RFC] scsi: core: remove unsed 'restarts' from scsi_device Message-ID: References: <20221118113052.1324140-1-yukuai1@huaweicloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Sat, Nov 26, 2022 at 04:54:46PM +0800, 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. I will look at this patch next week. Can you investigate a bit the reason why perf boost is from this patch? Thanks, Ming