Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3136057rdb; Wed, 13 Sep 2023 03:17:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXEuDl6a1o6aHyvnAwBdnq9Q8Zn1jPAn2z4CfZBSNVGy0jdfqddfbnxrsOl0wbK+aEpTvM X-Received: by 2002:a17:90b:4a08:b0:268:2543:723 with SMTP id kk8-20020a17090b4a0800b0026825430723mr1746405pjb.5.1694600223346; Wed, 13 Sep 2023 03:17:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694600223; cv=none; d=google.com; s=arc-20160816; b=ORs8MMag48mi7A6tjxDdOjJ3rFTQ6lRoEqCKlkHO3A1PX7ibxJEyyTOhf9UokvrvwR FXJa1dj8XlpPmkks5l/UO1LhebmyBSU8gxONkUP4f+Etv0fFkwY8IaqGkX8Iyz50zcZ5 OZeqdbyoUGREGCUzgt6j+NzARf/OMrCJNhaK00w261C2yIPH3zzVmANQXM7GVN+99FXy reqOuMc344Vj4boIo4NUyPX8I7bNXj2i3ITxRyXIk7u3YhYw4CgxiO+OuWtzdEecy3vO grDXAtK7DdikWBsjLVIUOT5l7bsYe41LF0VoETCoUZBieWxQHmanjCXUOhijgKXYYJmy qk2A== 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.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d9-20020a17090ab30900b00263bfa6e205si1275693pjr.50.2023.09.13.03.16.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 03:17:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; 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.32 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 agentk.vger.email (Postfix) with ESMTP id 21CFC81A1B8D; Tue, 12 Sep 2023 20:51:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232090AbjIMDvJ (ORCPT + 99 others); Tue, 12 Sep 2023 23:51:09 -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 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 (agentk.vger.email [0.0.0.0]); Tue, 12 Sep 2023 20:51:11 -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 agentk.vger.email 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(-) -- 2.40.1