Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3659030rdb; Wed, 13 Sep 2023 20:58:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQO0g0SOZgyx/SKxpd80vVtSk784GQ/XViu62YtQH+GU2jAXr3YIzy04PSe8KhURdcKSlP X-Received: by 2002:a05:6820:80e:b0:576:8c96:15a2 with SMTP id bg14-20020a056820080e00b005768c9615a2mr5722197oob.1.1694663906000; Wed, 13 Sep 2023 20:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694663905; cv=none; d=google.com; s=arc-20160816; b=kYSbe0siugF5h4xaARP1EsDPQ6cAx+cvKo6fILPxydiqhxiFEGAy+3UJLdoUGA6lxl T9rqb9urr1WJ6rA7fRvcTrOgvhYSGvMXle094fIV++dK9S5J2tKRvnUxKSRQkZN+She6 58eAobcos1HuEaPDZmSiRTY3ccOmNUNgL3p4W+a86iLF47BBVvRbGcmhUTcDlpYg0eG9 +N68lsWL6wrkNNMeX9X0nQrCSnw3Smbn6akzY+fDkbQ9jyz0/Mx2y75N5Dk6U2A7+VVa zVNPTunpJnrA3ERdWtFquerC6Whu1pQVzSyA9XilTKhmIEfaSqHaawHl6Yat7PJAquzd PLxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0/BBRvz91/qS3KlzgnvKJU+Ez3qMEnH1nXMNaUxqVE0=; fh=szS6nKOHqWqdmo+pDmdMHkpBM8bpzBlMJyKfLi9jRHY=; b=ywfxyndzGfkkMp7AeU1BQ5XM28JSwVT3woYREoNUJNzTOnf8SYMzCiGtdw9VyWzRtn G8xSzta9tPyx7N+h7u01tcJ9kMQ0guLznM8li0lObtUXgt1Tw4XWnQXF6KBtgm4waEHu vxkcCCSQYqHaJufnD1gSib+rXijeZRQIQo/hKZYhhK0RdkoKfRAOxRHI0p91t92FHnVf hOEkfCC5+FMxZIXehl5YjGlF5s5b6N2DPgB8e+ClyOiEP/jJ7GF2fDOr2i7JnpGgTZAw CigGp+KEfnS6hkW7jxoUuRszTbQBtpl2atV0CfuTPoXkpS1RGKDXw5SLRceGm6fqjKj6 PVoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=F4q3Ygj6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id n125-20020a632783000000b00577a5196245si643431pgn.393.2023.09.13.20.58.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 20:58:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=F4q3Ygj6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C465280613B2; Wed, 13 Sep 2023 08:17:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241630AbjIMPRE (ORCPT + 99 others); Wed, 13 Sep 2023 11:17:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241673AbjIMPQl (ORCPT ); Wed, 13 Sep 2023 11:16:41 -0400 Received: from out-227.mta1.migadu.com (out-227.mta1.migadu.com [95.215.58.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16861B9 for ; Wed, 13 Sep 2023 08:16:37 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1694618195; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0/BBRvz91/qS3KlzgnvKJU+Ez3qMEnH1nXMNaUxqVE0=; b=F4q3Ygj6OhewGfFQk8HXu//5xlTYgIC1sqR6KVRQA0SVq6L0RiUD/ZRfRu1NkH95snA+s5 woXrvUBK7WVCG2aACvaVJKPnZ7UHGDwOPfJcKH9deghCemJVWWxDZ1PVKJ/Jg5WEa9Ni0W MpDPeTrjt51ApEQrfPSEPDq7qam3WVY= From: chengming.zhou@linux.dev To: axboe@kernel.dk, hch@lst.de, ming.lei@redhat.com, bvanassche@acm.org Cc: kbusch@kernel.org, mst@redhat.com, damien.lemoal@opensource.wdc.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, chengming.zhou@linux.dev, Chengming Zhou Subject: [PATCH v2 3/5] blk-mq: support batched queue_rqs() on shared tags queue Date: Wed, 13 Sep 2023 15:16:14 +0000 Message-Id: <20230913151616.3164338-4-chengming.zhou@linux.dev> In-Reply-To: <20230913151616.3164338-1-chengming.zhou@linux.dev> References: <20230913151616.3164338-1-chengming.zhou@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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 (snail.vger.email [0.0.0.0]); Wed, 13 Sep 2023 08:17:23 -0700 (PDT) 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)) -- 2.40.1