Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2680179rdb; Fri, 22 Sep 2023 05:52:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG0CnF9o8lGDYgCe7jM0f7/61FDphJCiAJavxA8tXu9dCnhTRsAflSF1QGkQajqSpj3R+je X-Received: by 2002:a17:90a:db8d:b0:276:7806:9aee with SMTP id h13-20020a17090adb8d00b0027678069aeemr8454165pjv.26.1695387178929; Fri, 22 Sep 2023 05:52:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695387178; cv=none; d=google.com; s=arc-20160816; b=UyWD7Huje5HprzJBv3+No66lsJ31jZzpuN/QwCXwvTLKLGAfCA57FbhNTEnoC9JQVy S1YSFv1nPIXx6iHUWeG2EGiGQX0N3F0ycpFirE+M/keN5QmmkADCbFMK/byId6iopHjZ EHKEA0diFvkKYABnDV3Z74FqUWFVqviM5zbix4gDpe8qenLXLvDxvKFizer6kkJSU4Nc SMrbuHwR39qk32BVVH04hM7Bwbi03pTAbvqsaEK4HZ0z5aDKu0Rf3W/Yal8130Vs26E2 B4nJVxN94Unh+Hjjh9SG8o1xue7yTCCPrOTmuckopIzC883EKlEQdfm+gvVAFf6ctw6R QpLA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/DE04X5myYMSLSbdgQN2mttrC5Y+H9uzrXqGU6HwjJk=; fh=osRuhd8ymWapU0IYvZgvh/1X4iBtq6oxDgJSeRwvD6Y=; b=JdgPBKSLDgJHXNOZv+vF3lDrpEHbMiQbnIrJYmvmzhKbfhZP6SwHCvBaS/2aSiwsRJ I3DoUKSrZF4Bc4ZwXheM06zvOOm7Ai40EnqQ5dfYYVjv/wuBcJEDluhT/yZckBAjPEYN zEgVVBHYb4iTHXP5X27jU9cyv1joyCbvoQyqEg9YfTSfY0hgkyhJp/82kLQZ2jqRvnUH EGgysrKHgBVHEvjFsd8RtaFfWOA0QxjZE6ON30VMSJrlB7N4pOgeIhKi1FLvIqZT679W yCglln8NLriazWx1hgG4nHY3rZjGkaB17IATp+llHEqiYaGy3vjPJIhEZX2xxUo8hphS tHtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cPuew3Vt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id y8-20020a17090a644800b002743b58483asi3834737pjm.66.2023.09.22.05.52.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 05:52:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cPuew3Vt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id AA6A783B69AA; Fri, 22 Sep 2023 01:37:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232683AbjIVIh1 (ORCPT + 99 others); Fri, 22 Sep 2023 04:37:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232611AbjIVIhZ (ORCPT ); Fri, 22 Sep 2023 04:37:25 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C7F2FB for ; Fri, 22 Sep 2023 01:36:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695371794; 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: in-reply-to:in-reply-to:references:references; bh=/DE04X5myYMSLSbdgQN2mttrC5Y+H9uzrXqGU6HwjJk=; b=cPuew3Vt9A9zlFQWmfVfbt2CJOZavKb+BqrE+OZyLsNKiotMq3Wx9px0qfR4BsNbJTAV76 +0ke/mKds75KcrmlNCB466IreR/+2mi1rmQGewziKiYxgZ0xk0aal46NyknreCTO+BMGKL 6n/lOxEpIcd+/sjpZY4r7vRNMyWo9kE= 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-657-MI0UDQcpOEeUFOOzE94Bgg-1; Fri, 22 Sep 2023 04:36:28 -0400 X-MC-Unique: MI0UDQcpOEeUFOOzE94Bgg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 380EA802C1A; Fri, 22 Sep 2023 08:36:27 +0000 (UTC) Received: from fedora (unknown [10.72.120.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E4B7B140E950; Fri, 22 Sep 2023 08:36:20 +0000 (UTC) Date: Fri, 22 Sep 2023 16:36:16 +0800 From: Ming Lei To: chengming.zhou@linux.dev Cc: axboe@kernel.dk, hch@lst.de, bvanassche@acm.org, kbusch@kernel.org, mst@redhat.com, damien.lemoal@opensource.wdc.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Chengming Zhou Subject: Re: [PATCH v2 3/5] blk-mq: support batched queue_rqs() on shared tags queue Message-ID: References: <20230913151616.3164338-1-chengming.zhou@linux.dev> <20230913151616.3164338-4-chengming.zhou@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230913151616.3164338-4-chengming.zhou@linux.dev> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 22 Sep 2023 01:37:47 -0700 (PDT) On Wed, Sep 13, 2023 at 03:16:14PM +0000, chengming.zhou@linux.dev wrote: > From: Chengming Zhou > > Since active requests have been accounted when allocate driver tags, > we can remove this limit now. > > Signed-off-by: Chengming Zhou > --- > block/blk-mq.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/block/blk-mq.c b/block/blk-mq.c > index c209a7dddee3..68ce9357463b 100644 > --- a/block/blk-mq.c > +++ b/block/blk-mq.c > @@ -2781,13 +2781,8 @@ void blk_mq_flush_plug_list(struct blk_plug *plug, bool from_schedule) > * If we do, we can dispatch the whole plug list in one go. We > * already know at this point that all requests belong to the > * same queue, caller must ensure that's the case. > - * > - * Since we pass off the full list to the driver at this point, > - * we do not increment the active request count for the queue. > - * Bypass shared tags for now because of that. > */ > - if (q->mq_ops->queue_rqs && > - !(rq->mq_hctx->flags & BLK_MQ_F_TAG_QUEUE_SHARED)) { > + if (q->mq_ops->queue_rqs) { > blk_mq_run_dispatch_ops(q, > __blk_mq_flush_plug_list(q, plug)); > if (rq_list_empty(plug->mq_list)) Reviewed-by: Ming Lei Thanks, Ming