Message ID | 20170330182127.24288-3-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7848860113 for <patchwork-linux-block@patchwork.kernel.org>; Thu, 30 Mar 2017 18:21:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C98728528 for <patchwork-linux-block@patchwork.kernel.org>; Thu, 30 Mar 2017 18:21:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6184E2856A; Thu, 30 Mar 2017 18:21:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBA0828528 for <patchwork-linux-block@patchwork.kernel.org>; Thu, 30 Mar 2017 18:21:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933547AbdC3SVn (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Thu, 30 Mar 2017 14:21:43 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:29008 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933150AbdC3SVl (ORCPT <rfc822;linux-block@vger.kernel.org>); Thu, 30 Mar 2017 14:21:41 -0400 X-IronPort-AV: E=Sophos;i="5.36,247,1486396800"; d="scan'208";a="7365581" Received: from mail-cys01nam02lp0052.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([207.46.163.52]) by ob1.hgst.iphmx.com with ESMTP; 31 Mar 2017 02:21:39 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=0pj4Dc+uB/fzk2dw5kC80Ce5Zntj/0dfVRku2XOKkXQ=; b=OpPCo/ejId8tfIkvMwm9KRL7EKGgWdqPwu/ioKAD8cOyqHZLMf7/kgKmwLAuWWXczgC+gcJPo8h/iTHam8WzXcfng9SQa0jv8CddW2tqL/Runl0TOC7RMYHPgKDeAnn5znv5++agbt7QK4ZlS8IWwwINWeKrgab2rnNGnxp74yM= Received: from MWHPR04CA0042.namprd04.prod.outlook.com (10.172.163.28) by CO1PR04MB394.namprd04.prod.outlook.com (10.141.75.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.977.11; Thu, 30 Mar 2017 18:21:38 +0000 Received: from CO1NAM04FT025.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::205) by MWHPR04CA0042.outlook.office365.com (2603:10b6:300:ee::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10 via Frontend Transport; Thu, 30 Mar 2017 18:21:38 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; fb.com; dkim=none (message not signed) header.d=none;fb.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by CO1NAM04FT025.mail.protection.outlook.com (10.152.90.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1005.5 via Frontend Transport; Thu, 30 Mar 2017 18:21:37 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 6F.A6.19026.BAC4DD85; Thu, 30 Mar 2017 11:21:34 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Thu, 30 Mar 2017 11:21:31 -0700 X-AuditID: 0ac94371-093ff70000004a52-e4-58dd4cab6d7c Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id FA.DA.18148.BAC4DD85; Thu, 30 Mar 2017 11:21:31 -0700 (PDT) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Jens Axboe <axboe@kernel.dk> CC: <linux-block@vger.kernel.org>, Bart Van Assche <bart.vanassche@sandisk.com>, Omar Sandoval <osandov@fb.com>, Hannes Reinecke <hare@suse.com> Subject: [PATCH 2/2] blk-mq: Show symbolic names for hctx state and flags Date: Thu, 30 Mar 2017 11:21:27 -0700 Message-ID: <20170330182127.24288-3-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170330182127.24288-1-bart.vanassche@sandisk.com> References: <20170330182127.24288-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsXCddJ5ke46n7sRBrOvqFusvtvPZrHgzV42 i723tC0O37vK4sDiMbH5HbvH5bOlHuu3XGXx+LxJLoAlissmJTUnsyy1SN8ugStj1ped7AV/ BSsOnFnF1sD4m6+LkZNDQsBE4v2DG8wgtpDAUiaJed/luhi5gOxtjBJL185nhSlaMOcaVNFG RokvR+pBbDYBI4lv72eygNgiAgoSPb9XsoE0M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ZsGdvw2tNWNFXgv+31Z7TfRbvPNWJZbi jERDLeai4kQA9TgRmrgBAAA= MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(438002)(199003)(189002)(9170700003)(106466001)(54906002)(189998001)(5003940100001)(77096006)(356003)(53936002)(86362001)(1076002)(6666003)(47776003)(50226002)(33646002)(50466002)(76176999)(48376002)(36756003)(50986999)(4326008)(305945005)(8936002)(8676002)(81166006)(6916009)(5660300001)(2906002)(110136004)(2950100002)(38730400002); DIR:OUT; SFP:1102; SCL:1; SRVR:CO1PR04MB394; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT025; 1:Nft/hCY8ZoP8TVVa2trztyuAPgOzZKnCgUIb0krzul/h3r6CfGmu4TQRivRoFwFSaGOVxiAo+oMYQcFPrq8y7SxF6FIb87yWjuhpodgunbAOdKxKZmj3twWE/hyrLRlqdGgIFgW2lEfpCBv1bHLQ38qMkodzcAvXeG1TV3Lv8lPBQ7wnZWX5K6mo+8RSVY7Yygjq8PJTjzMRFR3BQObN1LHVwopM4X75JAPhkHyPEwZG3mWI7whJDXSuwbMrOIZd/a8z6lxGpvmHkT9vaVCQrOQG/L4KM7Q1nfsMbYy4K9NnqsvJXB6MgRgzTcNkc31j3p1oQ3K8XZpctSqSh4WszwCAHed6wv/PaPyNhpGX/gYfz/9jACApc3zDqdLjFaYgrCxfJX+VL2EK6lHKzaLtJJ2B18pE1/EiP+5+9uCx7W/ECHUxifu5xP397qg72MuXMyljNm8knUe/rWz7A6hNrx8vsRXx1yChF6tw12ahAyVf7i2lkyhIwMJ5Rehufwl12aWWWgQUwq4oYlcgew/lg6FcKt0ViSWVXu477qymS3w= X-MS-Office365-Filtering-Correlation-Id: 0ef8e601-44a8-4433-c73b-08d477999ae6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:CO1PR04MB394; X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB394; 3:DRWsK38jqhyyur/s4zdUzeIfAPts+xEZh4vnnKy4R746gf9x8mFEqVeYnAgfcM2Mf90z/OLtqLt0sX1Hsq6lmlGHSSs8SL/Ti4buPgOXH3JkcE7ef58w7iIIE1jFau0r8Q1FToQe5YfjXBbPdoHZVuqE05g55AceR+Yc0KkTgRAObOjtYTwjzv6WelNP5Gpmu4QVWmDFpsedZPumg8uoqGNzJ+SbkpnDgHjS4PFfGZpjV/65VEyq/jgOiyoWIMZSv67jFWYwkCbPfJtPiDelAZnGIcDbMa13yDCv1JJftta5UDwZ2kZtHg7OmiihCQ0mfrknGx0OQP3V3+Z1ZP+79dXrJFfLw8ye5MSD2QW+tjg2cp9UEKulw48GT5p81l84k2IGkXyE9YaqeodF6zZz9JqV4QbimquY3GcxNfuy8AUSCFEKfD+5A78FZzNMQfqy16VWFMQVzjs0QlTCiviXRTBLZn4+ONDLUQftMDos7DkmK2qMqarlD0MY8G40mrys X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB394; 25:qetnV9pcmDAMybXQ6ietBgcDXyJgpAp5qgJbsDi8RtKyJ+urx7gBKnCusjZsNmX/CaGd0LBdOLphyU2V4YAXmAsaZ2MZAza7ffNHzcXCdzRoJju8ZHkJXRRB/P3boPuXsEqBFkVNHAhElckn8Yj3Z99pzCc0EFwCYBMsEsWLr3pRBRct7sTiXeO6tZBOuPRyetV8UEELVnuYmbKbPGXTaJIA5OfaeqeEbL5eTd/73SacNgusdwUCYMM0HHacHcmluHlH6sqGaL9HdkRX4kf3DpJ5G0gDplKzWPyc2HGjqYf/+eLkiAlkgatSwxRYM8pN6Ev6r6xOCHEPOmGctJMXdF91su31ycAn6rvQMIimTPSqWqmxrb2e6X7/BZKamztCsKbSEAHU2u76f4NxHfiezQBiC3PE19wAfbflcEKXJjDLn0AxyCPyP8o657Gv3Akql1xamqvYLep7pR3vZFceDQ==; 31:4bdcOgIuOllnLE4Uk6QG1NaTAs5Z4eiSK9udh33COxFByUkDEKFJ0/w+RBkz0MeLfluNYeRvGOG3dF9wJ+AbA1pLl/5oYpPahMKIx2tV1qcuVj3+hOjKfdWzb4Q8bHxKxC2qQhuHIDtPhQijbeQQFJeIhi+64PdVzv8zAgvx/2tgLbt1HwplgxsNEZlt+zF5X0fVIpzKnWhIRc6UhU8IsMHPw+mQiLkn3Eqd0wt8r1129hpbJcTmLXC/I0IorD/bJX0MR5BlusMTq0bM81668/Muubc2BrwkLXx8LnklIeQ= WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB394; 20:d6qYSS8LGhTJrceYkJ15D73AToJ9ER8ZJC7+o3OaoCG6E0ifmHVMzCC2gmQRH2LIl2i9+VhGHWQSM+X4eZUnJzTh76J++iRlI5/9Fps0BKabbbl/jyhZSVPanWmqXjC+R6OshkWePffjq0UiBuevt5UagJp27J1m7US4oJBkDvZWMxsxQK/F9+YO1FONbxVZDkYpfFMV3IxhwBbdnYbfw3WraJ6mJvSDh6P1TG370sncmXT5w96KM4yGim6OsD+kGMgbirPED8PAHrsTux3UiN04FiXbZrS7s9omP6vPw4oTloJQ5srn+/kteM4Ct3x+eq6d9KNvwMyQzug/P7rkAHPphXdCiC44tsKNeW3sT22UpI0ApsFpHlcD6VXZ0IbsevOpPGj7cqaTj5dz6r6kOZXRQxy07iZYrLP1B4lnVTGFL2eDplKkzFt81586aHjp/yov8Dz44o1+Kr/tX0MoJs1+h8KNNR8oTstfwrVqgcJLtft8jgWIQqc7hqUKhver X-Microsoft-Antispam-PRVS: <CO1PR04MB3948E010521A23D355E616681340@CO1PR04MB394.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(93006067)(93004067)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201703061421075)(201703161042075)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(6072148)(6042181); SRVR:CO1PR04MB394; BCL:0; PCL:0; RULEID:; SRVR:CO1PR04MB394; X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB394; 4:Plx5QOO055q3loKNzcYzPTzdF/XPi+nqtciMlnqY0yno4ocDokH2UbAP7uGXgo5u4RyYRncNnKoI5oDYL7vXR0U6LwheTC3z2MMfmE4d/2h16PRSjYMeG/WUw92n4PD/Yc6Dcd0bM1NghIGKogaKU6jJWGceabcrVxZC15jzyfxXWtu9OZxircqdZ6KYBYjm4Xz7mUYN+psy8/130BGShdvfaSaSyv6Fq4FMyysKZCiCUNqNIjnazvVh9BdEzgO//hFe6HpZE64ggZC+qWPqXWsV/4W267N1rE8xjhgImSoFHlfytmeCTE4r9VWxcD4sqkuwhQjgLfN1EPh+46eTRsMIDXfMV7c0alZA80/1wvHyNWIVx0K4X/NcjoUVdN2RJL2gXa5k+vP+408iDrnwg0wxBfohy2Jf6uLveNmBtgI1yyK1UDfUZS9Rbwlqr75uARfptd8RiR/maQdE1I/g+3Y4xGzB5DIOWBuPv1ToztJP3MKe10xRtHwbEkVvjuUDnpHHEnG2Wnjtjoi505odI60/3SUSdeZyNnj9JufBG0eblevuT/nNsc1JmYIbycADrytM9LCKNskasJ8+As+U8G26fCr4HNPzNerKEO2mugxYw057dLW49GzYC0dYerDykj/AKRnZpbN3ohbQAd2uMFT7k0zgbMQJs+xqN1z+J326Lag62PGDSIYg7qiXAcAtpYCW3vqz6W1vCQTX+y1BpTxOp42RUxnFO6k1etqcsg5d/GxRPPVSfaGxEAiIcyAFhPCjgclaDtJLPLE48GP+4A+W3MFx4rg/o+Fi4o4YVic7M3MmCT6NI1rZ8ZVMs9Wyp4Luhrbucbww3vwgrCxILLAJVPW229JQzPo2WsaiVZXzZAD9DoqstmVVSTEfc3nn X-Forefront-PRVS: 02622CEF0A X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB394; 23:JNB44j2vMYKbXPhP89R0dqQNHKlSzS+TegFWzwEtLEZY536y+gIWE9ridYtKMqH7A5d5vE1YazOILknp7taTzHLZr0b7FSi16gCpjr4hRQA04vFVMm6GX6SGwP7FqHmssLxeF33mYZSvXxLbtJgt0ZbxILczwhuk4f3uWlj79yotYqbY7LCjYwrgAUWpbF7k5b+J7rYdOKcRVsOXVUwi/ya9l/mDk3w0Hu8vaSXEqNCJufTmeDb/AHqBKT89NlspUTW4XMVNYnYjGn98/S7xKL4YCc8BqdZa+WydTFUwcQ5/9fR3O2VNoePSJ45WYi8D9xQiBOS9ejEG8E0Sb2RTI0+YMaEW5vSrsMD090/cbs89wFRJGuPR7XQZ06rv1qyCHOtASZ3BxmwKUJUfH9t8m5ZlOL6tiLxEnaUCuP5AkNY2yPSdKuZq0Ar7m1DgS5hXTDJ6NhamSrQck+sceiSltrOuaErrV8C00wWk/eL1LfSp2mkszgIkeuSCdum0zFrKajuKlz6sXBLpOxgnZDyRt/mLVnzKgi4NRC0wCHWEBCtC4xCH1Al3f/cZjJW+bL/TTJsVnCQyCgJOhxitjozRnAe90vXH5r6pftoOZMSUtdu3GDkZ1aK23oLltixq9rcuNjhFFvN50bXnGPtJhGQca2rc9jEigMVkWuvf8dJp8E/RjyAeO/78MRvs94gfGEf0E8a6mVnLIkJd5EIziv+cZlfi00IhzMOOs9ehvv4LuEFn9iyduIMuaiaD4aCrixvPaFO4w7nllhgxnJFbi7ePgog7sfe6zvVC7mQGWfmSTKf5olUtL/gNCftEp6vBE67QpFDJRwOcZtn+ppD6tr4wug+ugU234UAlxnvomw08LwzioZsNvCrzKWrGVoVUdwp9 X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB394; 6:/WsCqIqqJpYYZksPvj64e/no2SzER56bokjEuCiicCLcrP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 20:lV7A4LzuifSL+sC9FVughmr/B0HGsdJmfeu+AulTK26nP52tIJHUf0t9IPp+puRhh8R3FLtogLhSMMvK82f1iLlsHxsTwqsZI9bl0KFeuftsPhmGyzfuSVuYraD8RtRuEWtFrXRSpIK34A85/aRsbxMwEJWPUO5Py56+ZNfc5jM= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2017 18:21:37.5787 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR04MB394 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 9e86056d47cd..91d09f58a596 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -183,11 +183,19 @@ static const struct file_operations queue_poll_stat_fops = { .release = single_release, }; +static const char *const hctx_state_name[] = { + [BLK_MQ_S_STOPPED] = "STOPPED", + [BLK_MQ_S_TAG_ACTIVE] = "TAG_ACTIVE", + [BLK_MQ_S_SCHED_RESTART] = "SCHED_RESTART", + [BLK_MQ_S_TAG_WAITING] = "TAG_WAITING", + +}; static int hctx_state_show(struct seq_file *m, void *v) { struct blk_mq_hw_ctx *hctx = m->private; - seq_printf(m, "0x%lx\n", hctx->state); + blk_flags_show(m, hctx->state, hctx_state_name, + ARRAY_SIZE(hctx_state_name)); return 0; } @@ -203,11 +211,34 @@ static const struct file_operations hctx_state_fops = { .release = single_release, }; +static const char *const alloc_policy_name[] = { + [BLK_TAG_ALLOC_FIFO] = "fifo", + [BLK_TAG_ALLOC_RR] = "rr", +}; + +static const char *const hctx_flag_name[] = { + [ilog2(BLK_MQ_F_SHOULD_MERGE)] = "SHOULD_MERGE", + [ilog2(BLK_MQ_F_TAG_SHARED)] = "TAG_SHARED", + [ilog2(BLK_MQ_F_SG_MERGE)] = "SG_MERGE", + [ilog2(BLK_MQ_F_BLOCKING)] = "BLOCKING", + [ilog2(BLK_MQ_F_NO_SCHED)] = "NO_SCHED", +}; + static int hctx_flags_show(struct seq_file *m, void *v) { struct blk_mq_hw_ctx *hctx = m->private; - - seq_printf(m, "0x%lx\n", hctx->flags); + const int alloc_policy = BLK_MQ_FLAG_TO_ALLOC_POLICY(hctx->flags); + + seq_puts(m, "alloc_policy="); + if (alloc_policy < ARRAY_SIZE(alloc_policy_name) && + alloc_policy_name[alloc_policy]) + seq_puts(m, alloc_policy_name[alloc_policy]); + else + seq_printf(m, "%d", alloc_policy); + seq_puts(m, " "); + blk_flags_show(m, + hctx->flags ^ BLK_ALLOC_POLICY_TO_MQ_FLAG(alloc_policy), + hctx_flag_name, ARRAY_SIZE(hctx_flag_name)); return 0; }
Instead of showing the hctx state and flags as numbers, show the names of the flags. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Omar Sandoval <osandov@fb.com> Cc: Hannes Reinecke <hare@suse.com> --- block/blk-mq-debugfs.c | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-)