From patchwork Fri Jul 19 11:29:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 13737226 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25BFC6F30D for ; Fri, 19 Jul 2024 11:43:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721389395; cv=fail; b=Q/G3iZ5O2whAxjTAjakMjr7HfcVdnMYRnsDq8Lp+czQq4MTu3mhz3Dha9hObtkN5q3n1hMPj5H+MUKVBjdcA+f+MSDNFlYTToZmaULZXjTAJqJVsnXZ9QuY0gnCnqhpMKFulj2/UeysBpRgOkTPMJ1+WJoITLl9/hlDlv8gO1fE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721389395; c=relaxed/simple; bh=E1xLET5Veg9AVrj2BYoJUoEdzwu9oP4MMi0dsBiszhM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=RZCNy6PdTikjDpwKaFZDQL//8yvlfJ7C3hB/Uj9GyyHKf7lGOxgp6pZBp6r6CdqmnfxOqq3ltb5dbHCKj6fxEFnJza/WoFGJAlDaJ8tSK+Z9x3+KOTOE+xJ+3ajPcgmdrqWmStrkdDAKsuNojifbooYh1yS6LBMFjgqF85VVs2U= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=Zer09ZUL; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=s/dfzJFp; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="Zer09ZUL"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="s/dfzJFp" Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46JBe22T026231; Fri, 19 Jul 2024 11:43:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :content-transfer-encoding:content-type:mime-version; s= corp-2023-11-20; bh=cdZUiJ1vVXWVE4Us1kpjlWyD5nqXoLUJtjw0QY1IVOY=; b= Zer09ZUL5R3s96KGajUZA2l8xg6xKqPB6wDjQMQjRvMSj8iIFhwLHZhsYVBXHhlJ qmLJ/3NODPmkLEWWFtF4sjpQPQWfZMGgfWJ2crUQch2mqxnKuBZcey7eNZl6RbDY KYOC4Z+0wRC14XOcPcx7OKwveMEZ9ySmPOQosVQMoHQTAhQ8hUSJn7n/FaIcYVqh nv+3lhgMK7h+juzIqALzVa7dFo90/nkDk87vGz1SQhQc2A3Lx9bpdze41BsBDVyj 3l27GArOm7LI8vXgDxFgTNZyFMVKUkwl2fTnl4PiKnNFOZEnw26+rV/GAmpRUZMu yjGCQzMd5G7w5Bso2gC/ng== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 40fqfkr04s-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Jul 2024 11:43:06 +0000 (GMT) Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 46JBIh97039597; Fri, 19 Jul 2024 11:30:00 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 40dwexj2p3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Jul 2024 11:30:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=f7B00us33s52NUw/Fa96a0vdjsuMvbGNAjm/RFpEr81RUAfRxKEc0So0H9FBWv/0GejKYSTUtIBGTZAyMC40jPWpyGzbwCwqMkqEoKmgVtKbnnD02kpryv7Z/MxJi1hA/vyRkD5jVFFStozZAkzxN3zCgXtmX1YvYcyq9+dg/NyMzeL0rk1IYhGOwqtIjIa0YuOMNx9zxfNk84tL2raqP6blbw43Pi0BxbrvChte9YXk2ihzzYb6+/oTgntKxyxk2DrKl6vjZLoekZg+swQEmfsCvQOcVGwcp86vWXXK7euiuFdqsPKazX9HcXMQEwAHRzWEuF5kHr3lUT2fRFJ4HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=cdZUiJ1vVXWVE4Us1kpjlWyD5nqXoLUJtjw0QY1IVOY=; b=ZlKZNmv5Ag32M/W3sHVT5Tfud1FL6Xj2/CTjAiVkhCcVxDT+Jqi/xuFImEl8nO0ciC7kvJuTZOiW2yigIA4o0vEXtWnnaNDv/V6Kp+BpzisVXUYdiNA+nYle1NKInM8rHNkpPw3Db4TxGk3XFC+dhUAaDhdeopy2T4bUFC4okntm/F2XXvbgqySxT31GZtXnVczFjQzEqBwHm2AbSVEfnty66rVcRSTRXIgD0WBXu/gqMQMtguyWTHGUy2UCwbDADJR1l3Hzwyj7bRhNWK13NH1xLkOtN0xU5wxywuitv54njMbOUysY9eTzOa6YvQeqaQpltBuvY/jcJOktkUMrWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cdZUiJ1vVXWVE4Us1kpjlWyD5nqXoLUJtjw0QY1IVOY=; b=s/dfzJFpdR2Ully0YwirPHNyaJrviIQalDBdhDpDwA2VsZhSeBJHSDVvoBF7hRn52kmQUfzRWO0P3b+gFKxeixn7Hw0s/pju1ZX+gbJ5A+tfyIx9Wu3mvpuk3HfyHCIqf3YInYBA78wvOd3K5VX0aVcZrqbhwDRccPblDj0/mmU= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by CY8PR10MB6537.namprd10.prod.outlook.com (2603:10b6:930:5b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.30; Fri, 19 Jul 2024 11:29:58 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::4f45:f4ab:121:e088]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::4f45:f4ab:121:e088%6]) with mapi id 15.20.7762.027; Fri, 19 Jul 2024 11:29:58 +0000 From: John Garry To: axboe@kernel.dk, hch@lst.de Cc: linux-block@vger.kernel.org, bvanassche@acm.org, John Garry Subject: [PATCH v3 10/15] block: Catch possible entries missing from hctx_flag_name[] Date: Fri, 19 Jul 2024 11:29:07 +0000 Message-Id: <20240719112912.3830443-11-john.g.garry@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240719112912.3830443-1-john.g.garry@oracle.com> References: <20240719112912.3830443-1-john.g.garry@oracle.com> X-ClientProxiedBy: BLAP220CA0022.NAMP220.PROD.OUTLOOK.COM (2603:10b6:208:32c::27) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|CY8PR10MB6537:EE_ X-MS-Office365-Filtering-Correlation-Id: d3741568-52ff-4aa8-1e97-08dca7e61ef6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: O+JD8uI914MXktBz/ssq2269kM35yRKvrCw45bplf3RKjtlEp8EQqAj/9DjZEawzeZoJy8EVWxujaSfOKVRld1gLMlyr9b1uheltSCnCtSJbERn6qAijkGcsaf0237KP8EOg1AkgDfGTa1hlkOoRFRVO5umXFj5jBH0/orxpu7dpWqn0CSwhJetyxFYj2K/01p+8VcXS9/gr6kk9OzHmxUYKAg4e8PF9UkMc4o9/w8V2UkONM84RP0aosSJ3ulZj9mO2DGZX5WDl7Ztw0SAVbsShg1Z5fZZTDL7803mCCgVysWnuHSW8QPOpRaksATrc0YjTeQf6YZOBB102AE0A3iVKXLgHThQofuK1i8rknmyxyJp8vq38sWtiQckp2bGu4e0TMWAULTYi7vomWLPFAEnUgMNoxJcXFNDYr+sIa0FVEflhHnyj0aXX7Xa2njxZtuuvoblCmkb6LLBlkPmM5iszjmtA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LA+Qa8o6KUs9RsC9/V2WTZJO6GayC+kS9o7WqPCNIb28UaW2vXuTAQFlTRqfZwrY5gDmLN1QppMsq3HHJBBIDS49i+qwmspcbS5R6nwgd6FfBNG88ekbQ4jnxgrDKlbNerLC8HNUS4yxZm1c1kkWTK8E/SvGbD0tyPyrHzrVSUXB91P3wjOZWrJ7hgQuZYoo9NA= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d3741568-52ff-4aa8-1e97-08dca7e61ef6 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2024 11:29:58.5019 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cYuLF0xMF/0C4OqsScm7y8BaTpqZHZn41G3xkFIavPmaiwytJ/OOoWR8igYAMsI7HmG1bAn5HGy9yEyX6Ozqkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6537 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-19_06,2024-07-18_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 suspectscore=0 spamscore=0 bulkscore=0 mlxscore=0 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2407190088 X-Proofpoint-GUID: SE4Sfy2ds_tm7ioYVdmMovRrs19kfbHL X-Proofpoint-ORIG-GUID: SE4Sfy2ds_tm7ioYVdmMovRrs19kfbHL Refresh values in BLK_MQ_F_x enum, and then re-arrange members in hctx_flag_name[] to match that enum. Renumber BLK_MQ_F_ALLOC_POLICY_START_BIT to match the value refresh. Add a BUILD_BUG_ON() call to ensure that we are not missing entries in hctx_flag_name[]. Signed-off-by: John Garry --- block/blk-mq-debugfs.c | 3 +++ include/linux/blk-mq.h | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 85be8aa39b90..8618aa07ba2d 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -196,6 +196,9 @@ static int hctx_flags_show(void *data, struct seq_file *m) struct blk_mq_hw_ctx *hctx = data; const int alloc_policy = BLK_MQ_FLAG_TO_ALLOC_POLICY(hctx->flags); + BUILD_BUG_ON(ARRAY_SIZE(hctx_flag_name) != + BLK_MQ_F_ALLOC_POLICY_START_BIT); + seq_puts(m, "alloc_policy="); if (alloc_policy < ARRAY_SIZE(alloc_policy_name) && alloc_policy_name[alloc_policy]) diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 4905a1d67551..27241009c8f9 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -644,6 +644,7 @@ struct blk_mq_ops { #endif }; +/* Keep hctx_flag_name[] in sync with the definitions below */ enum { BLK_MQ_F_SHOULD_MERGE = 1 << 0, BLK_MQ_F_TAG_QUEUE_SHARED = 1 << 1, @@ -653,15 +654,16 @@ enum { */ BLK_MQ_F_STACKING = 1 << 2, BLK_MQ_F_TAG_HCTX_SHARED = 1 << 3, - BLK_MQ_F_BLOCKING = 1 << 5, + BLK_MQ_F_BLOCKING = 1 << 4, /* Do not allow an I/O scheduler to be configured. */ - BLK_MQ_F_NO_SCHED = 1 << 6, + BLK_MQ_F_NO_SCHED = 1 << 5, + /* * Select 'none' during queue registration in case of a single hwq * or shared hwqs instead of 'mq-deadline'. */ - BLK_MQ_F_NO_SCHED_BY_DEFAULT = 1 << 7, - BLK_MQ_F_ALLOC_POLICY_START_BIT = 8, + BLK_MQ_F_NO_SCHED_BY_DEFAULT = 1 << 6, + BLK_MQ_F_ALLOC_POLICY_START_BIT = 7, BLK_MQ_F_ALLOC_POLICY_BITS = 1, }; #define BLK_MQ_FLAG_TO_ALLOC_POLICY(flags) \