Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2431017rwi; Tue, 11 Oct 2022 08:41:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Meh0pZYUTnemozuW1BAeZ0LkwX/J9jVGy+8lsrEqXCe1KbkbkfS2hjOUdDjrcmBPzJuqu X-Received: by 2002:a17:903:1112:b0:178:a030:5f72 with SMTP id n18-20020a170903111200b00178a0305f72mr25005116plh.12.1665502861869; Tue, 11 Oct 2022 08:41:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1665502861; cv=pass; d=google.com; s=arc-20160816; b=eB4lb3N2dNfCjPh43DdT+kJ26HjUKHcBnBEeqW1yXD0ofB46VJ2xBrZbFJdeYktrFP xoteCFU/NaOIavT1yJ7e/fJmfxWMKQWG9iJhc1jc1MvsrkISr50MYNLTyY7Hud5EBTgG QvW6No+N8Ck4JgcmwYhcJttJze14uiv8l8JxNALmu442Sm0ytTcemLBJcC4Wo8pU2mYz a+7Xfz556/UaUBG8aCLnjhnpx49uG/+OyYouiVJAZqfNQ2rOBr7YtQ6SeP7/dlj3vgzM 5ILjl1PyxPVO8DRBp7i4dZlrj14Y4TVDM6FYc5cl8NkbBBVuL08Oq0mkF1iIpFZSmok6 Sjxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=2bBy9sw36qcFhorM+iNFTH7B/8r5UMCmWvqfteMHnNY=; b=KnQzUoi0/xiNBDJ+j7XES2+zTZhtZSH2gxPltVk/0XbtBaDd2v8UZCAX2mVV4/JrcH YdHMkeaCSy4l5iIELmAehbQcU73VHmU0ubk466ri3BtgyBB/0nVRSmObx0DPoDJPUtA9 6QUsQCAYyccolZfKfcqQ5B5U5OVS+MzEZQMSH0fg5pc0aOmvSCQygQQ/dCqLG7W7PY+e 6/r0Vzsiv30h9zBYA/pM2laGy9rnfWiqFcaqvitmbCZ/Bt4qaMKUHIrVVh10hI02qj62 tVSpO07WXtZzHUdQXQx890bBBSZoJXn3DxvTX+u3NJlMgHRU0qsVxclwKh30uDF5/PPx itfQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=VprE1niq; arc=pass (i=1); 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=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 35-20020a631463000000b0045af77f7f19si17235123pgu.400.2022.10.11.08.40.49; Tue, 11 Oct 2022 08:41:01 -0700 (PDT) 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=@outlook.com header.s=selector1 header.b=VprE1niq; arc=pass (i=1); 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=QUARANTINE dis=NONE) header.from=outlook.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231726AbiJKPTE (ORCPT + 99 others); Tue, 11 Oct 2022 11:19:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231755AbiJKPSd (ORCPT ); Tue, 11 Oct 2022 11:18:33 -0400 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01olkn2038.outbound.protection.outlook.com [40.92.98.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06D59B0B11; Tue, 11 Oct 2022 08:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fywr/bBjOIURZM7Y8fUN20X8H+Iy5LCkeIHsqyi6nv2zjIK52aGrBq/oOAGSmPYP7Gq4S+tp/leMbgIRgNYdWtLVprYEpvlEKhxvYSHp2yUTTjM0i5NkedBT25ljjv6BbYNMVNAP4HNxdscy9DRD2hmPwVisD14QnNsiVVuVH98TkjoGevV2uLGu/5wXOA9PfbUTw6WKYqs1k7YhhTFU6M9pml9RHQN7mXLHGWo0JFirycYQIpIV0i0hpyQTrLUD64JGKy4Nnl4lcN2pNpT9APivI/8cBPq/ycPcSkHMWq5/EPotEOJDnLOSKcYK80EHVHeiNQ9AujxSZ7G7E+9FGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2bBy9sw36qcFhorM+iNFTH7B/8r5UMCmWvqfteMHnNY=; b=cbNNBmRuWoYPKcpiimnXH2TzioaVnW2dMQI2xF3x3XuduilbzkUe8S+zHnrXyaDjsx/xVf/HLAxMf+TwGZ8+Ywnh5ii/xh87ulx3RJD6hDEg9mcJeUwncD0CKiRODhSll8dpfosnEwmlcYIAs/YUOGCcV3On6Pho6B9CeDsaW9FdNyiKUTxSkyQwKSTVVz/q7+SaazDwEr1Fb3RH36E5dfGWHlkBwbpbxLhXMbYqTEPLsmEvW7ADJjxA/Y2OwqnViI1N9TFOYosDx/BYN+FQpQO+Y/9Z1a3d1ASxuNYPCbDmd8VcwLbaEYaytmj0sQCjdpF+BycuI7v/JQ96mtr55g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2bBy9sw36qcFhorM+iNFTH7B/8r5UMCmWvqfteMHnNY=; b=VprE1niqM/yyyFASg7FZ5LpQ/EtljQ5ETMBGywkfftCclL4q/c1fTwqtJljtN7xTEpG2kDonDxP3cJ/ot6oP+tHfhlMPmuTHgbi/27TpZOgExCMGCcXBmlCJInGwJpx/A7/sfrPS6BA1h5rbgFxD+y/I41yA7Dy5imVjHOklK3uFGWRY6h1EczDnaXxwpg95Osbxiv6Ihl1WWq0s/FcfxWFkUTQLZ8Uv7m6qQaS9nur8kfA3HCkuy47D8JciDORcGtjFQsKni/BhFIKu5AzozOOefe+XLYgOabBOueHvNq57Q3qCvqF2cH7ii+XAIDKIS7tgRiLRu+ukDAO8LXhvIA== Received: from TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:152::9) by OS3P286MB1855.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:171::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15; Tue, 11 Oct 2022 14:53:16 +0000 Received: from TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM ([fe80::4722:62da:4861:9d73]) by TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM ([fe80::4722:62da:4861:9d73%3]) with mapi id 15.20.5709.019; Tue, 11 Oct 2022 14:53:16 +0000 From: Dawei Li To: axboe@kernel.dk, tj@kernel.org, paolo.valente@linaro.org Cc: linux-block@vger.kernel.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Dawei Li Subject: [PATCH 0/2] block: queue flag helpers and atomic refcnt impl Date: Tue, 11 Oct 2022 22:52:44 +0800 Message-ID: X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [h4jbJW2cCnzmS36dnXJgkEkN2UQzb7Et] X-ClientProxiedBy: SI1PR02CA0015.apcprd02.prod.outlook.com (2603:1096:4:1f7::18) To TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:152::9) X-Microsoft-Original-Message-ID: <20221011145246.8656-1-set_pte_at@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCP286MB2323:EE_|OS3P286MB1855:EE_ X-MS-Office365-Filtering-Correlation-Id: 0819f860-b6f2-4a0d-86a3-08daab985413 X-MS-Exchange-SLBlob-MailProps: LVbdfIC7uFAGjbskEBW/SERmDHTaO4T0p+LoA095vOPEm70rkD5JVnwVPm3exiyyLQZamrCHV/tiLlIxNSS2jik+MrBEt0/CnPSq6EQMKBECVuC5GFpN3fpVb9bKYj1tcezcsa3pn0Fk2PJ4vwBYXE8Abt5218ophkxdesVnNn/gg1Wx4TLjjuyWj+U/Y1vsaCXaPm2NvBsvs7UypSnY5L04c8bUqh7MNE6az7cVkAMxF92SJj1Ya05B7Zn8OhBWNbaRHnToXlaFUEch3efBc412IQjJlOqnPL1HJJEAbSZhVDGcUoBW5RgOHwGtcx/7dIG4GAGQGINRTcMca4irKH89LUf2czWXigXaFyAMrlipfwtZlvVQ9HrrpQmORawaeksynG2aHyfaIbPtQi+47fycAdN0Xy4gq/yKdCGuPkcTM5bm1FuEX54J2K9vlc181L74TdNucsV/90bs5DuEf4BaXWwiNIGADLuhx2SyLw/rPGK4915MMrtl5yKLM68TifS8dn/UCDuVKwpwuxGuXH8E8qajYzkun5GDOV4B/L7sxYdUqYEG5MMtf1+61XvMvF10UxPNKSl6ileWO2ghUr1DURQSfo4/0/Hf2qNzYw9Se1seU1b8SAdw8Xfad10JeYGHkxpAhPwtlA6gvTZY1RIM1GgNwJlW+T5dzzjW3qyStWbD1b6kTht9tq2LiGIjLtt5zsnhDqf9ioDT+Mx/ZmowKn/+rkJm5uQYgfMBEFksGjfgsS/O4g== X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vjEhZ9XgujfF7L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ii?Q?iBZBJwPEgTRb8ngzXXqXFFAzc7WNFdFhgOTKDzPnsqYKu+gBr7M2wT3kUkRa?= =?us-ascii?Q?kFTIVHQYd+oSJTF6x8fYA1vKZ8e13KY1rW6TkmC2xrMOAHcSVor9l78l+vwT?= =?us-ascii?Q?yHyRd630QEvMCuo9xDvz2HIFvLpwZYExgGJnZJozlw=3D=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0819f860-b6f2-4a0d-86a3-08daab985413 X-MS-Exchange-CrossTenant-AuthSource: TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2022 14:53:16.4195 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3P286MB1855 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 This patchset includes enhancement on block layer: 1. Complete missing blk_queue_xxx() helpers which is responsible for denoting whether an attribute of request queue is set. 2. Make the referene count of bfq_group/bfq_queue atomic. Dawei Li (2): block: Add helper for queue_flags bit test block: Make refcnt of bfq_group/bfq_queue atomic block/bfq-cgroup.c | 8 +++---- block/bfq-iosched.c | 54 ++++++++++++++++++++++-------------------- block/bfq-iosched.h | 6 ++--- block/bfq-wf2q.c | 6 ++--- block/blk-core.c | 7 +++--- block/blk-mq-tag.c | 8 +++---- block/blk-mq.c | 8 +++---- block/blk-mq.h | 2 +- block/blk-settings.c | 2 +- block/blk-sysfs.c | 12 +++++----- block/blk-timeout.c | 2 +- block/blk-wbt.c | 2 +- include/linux/blkdev.h | 19 +++++++++++---- 13 files changed, 71 insertions(+), 65 deletions(-) -- 2.25.1