From patchwork Wed Sep 13 03:50:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chengming Zhou X-Patchwork-Id: 13904 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp985871vqx; Wed, 13 Sep 2023 03:31:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHe6d8EE/HNvlrFensdELxAovp0wi4k65RFiTB2x9Orb4QlWiSpp3RwK/iU8BtZY12y2xIS X-Received: by 2002:a05:6300:8088:b0:14c:c9f6:d657 with SMTP id ap8-20020a056300808800b0014cc9f6d657mr1503379pzc.22.1694601102741; Wed, 13 Sep 2023 03:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694601102; cv=none; d=google.com; s=arc-20160816; b=lvkwi/6M61MtrMX0wAuKdaQzJh1MT4bHSix3bfMQxMQWaqp/+fXcvt5IBoBgOixgZ0 C1aOZQDOirJnam59s9SkXBGtj7mSIeBx8Egk2lshNGeZIIUaR6IrlttUhI8Kme+uc1pW bHXUoRdphq52OWZ3ZHzWiPPqfW6myCfIxIUH+8VCy2u0LcYUhH+nMUfN2mjLSF6AqDv0 y1V9zEuB/Gb+m+0iMvtFTV2X/t8mtMpNT8L49aefTpjVXomsEV4jF8IgCjHoWW/3zse0 frliVyWAcjbPncgyUR3ZE1a1CNX2dlmxohTTbHfHKcm811WtfWJesLLCfw8A1tsH+3ly T0CQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Aeyr0b8bkN4XBJ+a0mzzF1/q2aGdqqSXg3ngYkNm6+A=; fh=0kSCNnJ+Dz7/k19JqdLGTHBnZxdhAtg5C+lF7soNwhs=; b=czqii2lV2jme6h1zHp9xwg5FJkz7NWA+7xmWeYo+1+vr0/o5pDw+EVYsmiAo9AIBm5 jj0KyW7tBNMVLOH8NsSbe6GVikRij9NBCLEHtNPJbe8a2WG1ofvahV8x6H+zAQidap8R LdEdG/mFdeNGTI7vfB37VshUD4HHbeorwSM60mzmrZAWR04PmbS3FW8jXuYD+BM9X/Jh IM5Q0drELzbkarJ9HRBfNksSowjdkRLMrdd7OyxIqh7UMT7FtSFdA5BsinXYTjQ4ixoS 2D/Yk1HBvoyXxJsho8xO7DLFDWftvQpRO/IVaE57apF24v4dwUMSqNH69fqRzXWIMFH5 blcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=k6T9cjd0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id p12-20020a170902e34c00b001bf5f853a8bsi9558836plc.641.2023.09.13.03.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 03:31:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=k6T9cjd0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 18125826E3BE; Tue, 12 Sep 2023 20:51:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232367AbjIMDvK (ORCPT + 36 others); Tue, 12 Sep 2023 23:51:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230052AbjIMDvI (ORCPT ); Tue, 12 Sep 2023 23:51:08 -0400 Received: from out-219.mta0.migadu.com (out-219.mta0.migadu.com [91.218.175.219]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A49FD172C for ; Tue, 12 Sep 2023 20:51:04 -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=1694577062; 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; bh=Aeyr0b8bkN4XBJ+a0mzzF1/q2aGdqqSXg3ngYkNm6+A=; b=k6T9cjd09/oWsfoS1Z0mAxCYfxs6/85c7/1HNB0lo1xf2PF2eEqgSb9tXNsdQxYEDgYuk7 MCPnbjnJavUmGQZ3hvbLb2VlYyPOCtJgXmcK/D3h9SYYXkUEq6JRT0fiV0nAU+064hq4Px R9xGy2/IKYPlXbAaFizIEqEfnx93sjc= From: chengming.zhou@linux.dev To: axboe@kernel.dk, ming.lei@redhat.com, bvanassche@acm.org, hch@lst.de Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, chengming.zhou@linux.dev, Chengming Zhou Subject: [PATCH v4 0/6] blk-mq-tag: remove bt_for_each() Date: Wed, 13 Sep 2023 03:50:27 +0000 Message-Id: <20230913035033.1549277-1-chengming.zhou@linux.dev> MIME-Version: 1.0 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 (morse.vger.email [0.0.0.0]); Tue, 12 Sep 2023 20:51:18 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=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 morse.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776901379717941608 X-GMAIL-MSGID: 1776918045512996615 From: Chengming Zhou Changes in v4: - Add Reviewed-by tag from Bart Van Assche. Thanks for review! - Rebased on the newest block/for-next branch. Changes in v3: - Document the argument 'q' in the patch which add it. - Add Fixes tag and Reviewed-by tags. Changes in v2: - Split by one change per patch and add Fixes tag. - Improve commit messages, suggested by Bart Van Assche. There are two almost identical mechanisms in blk-mq-tag to iterate over requests of one tags: bt_for_each() and the newer bt_tags_for_each(). This series aim to add support of queue filter in bt_tags_for_each() then remove bt_for_each(). Fix and update documentation as we're here. Thanks for review! Chengming Zhou (6): blk-mq-tag: support queue filter in bt_tags_iter() blk-mq-tag: introduce __blk_mq_tagset_busy_iter() blk-mq-tag: remove bt_for_each() blk-mq: delete superfluous check in iterate callback blk-mq-tag: fix functions documentation blk-mq-tag: fix blk_mq_queue_tag_busy_iter() documentation block/blk-mq-tag.c | 176 ++++++++++++--------------------------------- block/blk-mq.c | 12 ++-- 2 files changed, 49 insertions(+), 139 deletions(-)