From patchwork Tue Apr 11 20:58:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9676063 Return-Path: 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 8F392600CB for ; Tue, 11 Apr 2017 20:58:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82BE026E96 for ; Tue, 11 Apr 2017 20:58:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7742F28512; Tue, 11 Apr 2017 20:58:59 +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 ECAF426E96 for ; Tue, 11 Apr 2017 20:58:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753602AbdDKU66 (ORCPT ); Tue, 11 Apr 2017 16:58:58 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:63532 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752951AbdDKU64 (ORCPT ); Tue, 11 Apr 2017 16:58:56 -0400 X-IronPort-AV: E=Sophos;i="5.37,187,1488816000"; d="scan'208";a="9844222" Received: from mail-by2nam01lp0179.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) ([216.32.181.179]) by ob1.hgst.iphmx.com with ESMTP; 12 Apr 2017 04:58:56 +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=NssPQJZobtt1AS1eg8iN2eaKWSiaE1yKYaUGYqEYyQc=; b=dm0BnD+9xpfXfZ3DRIjo4VUaNhozY/QttEojYQ+DjFlxGHINjCmEHh6v7d524f7RqFmg4//hmPKcpjsusnGU0xFSNkW2bvRdcl+Y6mM2r8ogwi59hfhxJT/NvpAQbHd1M8xF+0SSqA4HGjje2C76zP4/ayPr4V82RflprITK788= Received: from BN6PR04CA0013.namprd04.prod.outlook.com (10.172.194.23) by BY2PR04MB111.namprd04.prod.outlook.com (10.242.37.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Tue, 11 Apr 2017 20:58:54 +0000 Received: from SN1NAM04FT011.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::209) by BN6PR04CA0013.outlook.office365.com (2603:10b6:404:cb::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17 via Frontend Transport; Tue, 11 Apr 2017 20:58:53 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by SN1NAM04FT011.mail.protection.outlook.com (10.152.88.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1019.14 via Frontend Transport; Tue, 11 Apr 2017 20:58:51 +0000 Received: from MILHUBIP04.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 EB.E4.29323.9834DE85; Tue, 11 Apr 2017 13:58:49 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 11 Apr 2017 13:58:45 -0700 X-AuditID: 0ac94369-548749800000728b-17-58ed43895188 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 38.2D.11415.4834DE85; Tue, 11 Apr 2017 13:58:44 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche , Omar Sandoval , Hannes Reinecke Subject: [PATCH 4/6] blk-mq: Show operation, cmd_flags and rq_flags names Date: Tue, 11 Apr 2017 13:58:40 -0700 Message-ID: <20170411205842.28137-5-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170411205842.28137-1-bart.vanassche@sandisk.com> References: <20170411205842.28137-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRmVeSWpSXmKPExsXCddJ5kW6n89sIg/Mb5S1W3+1ns1jwZi+b xd5b2haH711lcWDxmNj8jt3j8tlSj/VbrrJ4fN4kF8ASxWWTkpqTWZZapG+XwJXReXwrW8Fm qYpz35uYGxj/i3YxcnJICJhIdMzaztTFyMUhJLCUSeLZs2csEM4ORonOlUuZYaqmTHrLCJHY zCjRcuANO0iCTcBI4tv7mSwgtoiAgkTP75VsIEXMAlMYJaad+8MIkhAW8JTYNmstG4jNIqAq 8XreUbCpvAL2ErOfvYbaIC+xaNMMsEGcAg4S/Zd/gdlCQDUrjl4BO0lCoIlVonvyEzaIZkGJ kzOfgBUxC0hIHHzxghmiQV3i5JL5TBMYhWYhKZuFpGwBI9MqRrHczJzi3PTUAkNTveLEvJTM 4my95PzcTYyQ0M7cwXj3ifchRgEORiUeXo8zbyKEWBPLiitzDzFKcDArifDOMn4bIcSbklhZ lVqUH19UmpNafIhRmoNFSZz3nMzUCCGB9MSS1OzU1ILUIpgsEwenVAOjz6zwsz/OCbqIB72L VvEInOrnLH7Txu0hn9dVzpuytRGuG2eebD840+im58F1EdkZKeuvaYnPeshYWawR210ir8S2 uaZcda9R83+DwDSO3VxuKZ7CD2QPT+nS/zC5WJxV+v3lBdeXu8vmTfre3TTphr4lY6akEp/b xl1H9nDKOUXp1zhLSymxFGckGmoxFxUnAgDtbN8eaQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKJMWRmVeSWpSXmKPExsXCtZEjRbfF+W2Ewbdn1har7/azWRz82cZo seDNXjaLvbe0LQ7fu8riwOoxsfkdu8fls6Ue09acZ/JYv+Uqi8fnTXIBrFFcNimpOZllqUX6 dglcGZ3Ht7IVbJaqOPe9ibmB8b9oFyMnh4SAicSUSW8Zuxi5OIQENjJK3P7/lwUkwSZgJPHt /UwwW0RAQaLn90o2kCJmgSmMEl/2bmIDSQgLeEpsm7UWzGYRUJV4Pe8oM4jNK2AvsWZODwvE BnmJRZtmgNmcAg4S/Zd/gdlCQDUrjl5hmcDIvYCRYRWjWG5mTnFuemaBoaFecWJeSmZxtl5y fu4mRnBAcEbuYHw60fwQIxMHp1QD46QqBXVfqeJdM/SXVvwxn67O0Pg3ZevRZxy7fF/PeXGM X//n8ZntF3bGx0U3WRx+vXPn97lpYUfbxV4WXP5bZHB0/dPDzCW2cdrs7k9ame7YbLnebHFK cLLKg4x1c2zyjBS9vubLlF+cu1zX3/ZlQZJkQ9qkBoGjHQUffDcz/bENc1qx4MbeSUosxRmJ hlrMRcWJAJ5cABS4AQAA MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39850400002)(39840400002)(39860400002)(39410400002)(39400400002)(39450400003)(2980300002)(438002)(199003)(189002)(9170700003)(36756003)(5003940100001)(86362001)(4326008)(356003)(47776003)(110136004)(2906002)(48376002)(305945005)(38730400002)(33646002)(8936002)(81166006)(50226002)(8676002)(50466002)(6916009)(2950100002)(106466001)(189998001)(5660300001)(76176999)(50986999)(77096006)(6666003)(1076002)(54906002)(53936002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR04MB111; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT011; 1:LA44TQMBt/jS8SbGh3UIEKHvT3gGfS93Y21iDZKhFy9QayzudgLZ6IrT7dvq9hw102hd4KIIsJqNKcTVFuG7VHeOCMUOqfMuVpthG5avt3SNa+0FAn4rYLia0ymKhhOJyOhLoHVRxC/XBGIS5bBFV9zHQxrriUBN8n/lfox+syIOvuMuWxM6jCeZNMBYbZSqMRU/tXl5iCxeIKa2etyKvu1VH5uQPyhC2IvyaFNLZgA+Q9fAVZJRu5IBnChqRXxl8TMqX9/DsXzlbiAnJxKgQfqXFxKarTmd5+tvCSdY2W+wy1arsmaLDv78GDu912O+aAWcsWNOSnhx/y2c739Q4voyWb68pmGSCN1dpLja22RhWwelTJSOz83Hf9ac8fpBQuLZHV1XH9GozYutti9j/HuI66u5vyrn15AILagV6vCalSr4ctWH+dtDFSYceiT3Kk8QBZizP1Fag2H44Q0HH/a4UYICpAOcQXOVdqi47urv3jpBPFcarYFK5y94Kk7hMt6fwvzZQojdAs2Az6Oc51cg5evC11qCQW4tj0878qU= X-MS-Office365-Filtering-Correlation-Id: ec13232d-a562-43d0-dd21-08d4811d8fa1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BY2PR04MB111; X-Microsoft-Ex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Pdn1Kp2s1OTxj0DWk0QNqXLYeuNevJc1V9mKOgnCY/QUak2kQ7zpPTq+rjCJVlljEs3Yr3Q5j58ByMhS19GoTEJ3gaB8cMzDqDJpT9dhUAWL6yoYDoCXm1J8rMri+qtQMr/VlP3oXg3zDEQTivGZHa3Jl4D1evtDEBL8BeWEaAyVAidd79qY8VuLjePuBxweWTlIowxBrM20/LtqFUUPPUhrLdA/pyUVVhFHCr4c1Sy91sQRN9be0Yo2GJnQMzJfI4O4KD1WQo0KpI9y78hqA== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB111; 20:hucM0j2CoJOyDsG5VDUQ8eJTQkjWHmchbciMYJCQH/2UFsoceNjFpPyuE5anLvBMLJiwZAsDJa+bfycQ6Tkc+Wn8x8n2amGVDXYjFwnuDXEDCPNqFfe5UCBS1ZZ11FnS21D0Rk30FGa3XZzHxlBpJeoRWncErFoy+i7KIbTUuPcMeFWnSNNRWGqUBnCTNLJq2iou0xNBZYISByEl9wQxLH1i7rLPlgACl6s53QWKKdJsDVuOMuWwWSlQZgcKHRihdr18+14Vd1G1XVrf8Hy60/x8hPKyfzQfxOBoABg85w283fxG805SYeIw2NNhtS1U7EDaPaoCs773iohiiyMMoqDIsZK8WZCuCHmh2DA342eyGifaA0DyaVkHdm3owoeE6gQMtD4pe8sCiGFNnEdgIfzlBd6AItIUNoDRdeC5iVMxzsYuZsU6blyAzgqWIhlRqAwgaRdWvGDZtoN4vD3svYWOKmd1Zq2nFhlUs+X+if21aeMy7Ajyzg0sdl7swrQy X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13016025)(13018025)(8121501046)(5005006)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(6072148); SRVR:BY2PR04MB111; BCL:0; PCL:0; RULEID:; SRVR:BY2PR04MB111; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB111; 4:DmDYYh98ctjpuG4lB9go8ytx5GhTZu4WD3D2vH+BpkyddVwmQnnLSNwXyJzywosSwZimqRg9O3u/498ksrJypfrves/+V66yTkCg3ZAv8yfbW9sVXDC0tOq6EKTTu2TIp6bEeo7q0bl5gLb3K5W0pGKOujlbcQyvwrezW2ST7suMxBFt9LUy1WEut2hGWxte5y+y5rdHu0SfU9nLZpg15cGK5hlPHk00j8PhZcGtaq00vJ3aCIPZIFa5DHENacobozEV8KIyonKLAXuyri5T5/iv42vnHGO7s492vX3usyWnU7qX8xDhSiXiJR1smYcIjNCYj+1mL4QSvJ/GsDW4r+R3IsFgF7SZ71bnw9yBe91sobt18NHqC0JG7sAIAjqShXzZUJklXdR31kPbEFuIn5zcRR23C7Ey2ZIH0QdcI3VfKgdT2/GpAb2OCClc3N/e8tFlmKlYu9yQRm78ItquF9D7umILx2Dzwg2Vrr7u1gvaJNKF2xbRIWKdGx/rDIOHKXRaeCf9/qovhAe59BT9bxetDHpYFaev3Z5jg2l1lPj1tpa1dtdFlkc+5vk27FhVQ+Zv9lTK9JsLPxz9do25qfIvtapeZFBv3FDgUGpFMQxZjEdCyYXRau5s6IU/gy0lGJh/uYDsb8Mz1aD1njF26sUTYWHrvIhAXgH5+MHliBYAg8uxyfS7R2dBOgZ+BWtRuWpeFBEtdu1liBTrDiGbuIDJpDptRvuRPy45j8LJOr4lQhskDgVhgio0jdZ3f1RNuY7joCsuJbQP27XzgHEttrflZG7iKInYrjaaeCn4wHDcnZri8uGrNdad/Lg04y04YASJYA8hxUxWucdukRhflAt03mtBQ5j9LIQQg9USs4Q= X-Forefront-PRVS: 0274272F87 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR04MB111; 23:IBlX4lyUK4KhnR9/jhEMs1ZEEOTJDuSMliFDLTw4R2?= =?us-ascii?Q?h3VT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=?us-ascii?Q?6mBDYSxPbKT8SCZfyKkZkpd1INBkjRnzKpETIuZwMxtGaQoNX+o4xYCRm7Tm?= =?us-ascii?Q?fW4dCbc6e3oEKRx3nvWAj4zxEruRmhOaRXD4peZ1bhRA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB111; 6:hjzwyPpvgSUy7hxaAntNFXCCDh1zACbX8XRHg18LU3JFW8mKsrG+cwxNY34PKPqyWacNyuMk5rpSscdrc2OTnCZQaaNgARKPXXiAQdiOkjlOR0Q/s5+rtT7IsIMu8uryzJFyMiGRIN48cdIMkk+XEZnPsUSNtrmDd4S+OS+W/JG7Xc/uJNpYIfh80TqRtkXlInmY3T5q6cWnz1sIVM768XjOzk+3hPUJEDxv+d44L+XkUDmsxDyyEaLrsjIFMbom7EpzUMxwSDEL65HRKx3nfQvkaEo1kkLmxG3XsEeF+wqJcepWaANopHFgWc3u4jhAfyDyp/Rg/9rMRtCvLpEAGl0xgLHV33gkA744CHH1vRdZefvONPTOpJA9eKCF4r2VLnlvsNSb7FkDi4VlYOGYdxKkrHKy4XfM9cMgdPVUBvS6BsHEQg7fng6ffPqNIrBxeMNtWUcQV9TpooyvUon06LFSDNR2FsdF5RblPF5CRAI=; 5:X/NBiKO95ghk3urcWhG8vaNGvDZiBQoOwYlljLaBl7V2+DDaWybJ6fVMLLdactrjr170DCbmnT8gUy70z+bvyhgx+tCCB/jtEDiFxW4pex4butf5QSNmd+UMGHhgwGC4N0i+5yP6VruAKEC5cpXYBw==; 24:lEE/wM1g7bBiJ9dQ5GY9EVYRnAIgFqAf8nriC8HuDbcDG4A3T31EvbzBMg8CSUX+CLWmycxRnZ4MURNpGcYISyWEZ2CXF9/ooVMO41pxJfs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB111; 7:8LDLmseB72GQAdYukYj9kKPEgUyWVdMKELZELDVnZoW1mJn6zhmT3Q44m23kaPAj24/0cwxI8IP7CxrByk2I2UPgIVVRLuqzuXXRsVdZxeuAcZGgSM4UWGWG7CreoO6G25MQHM8NDiR9DtmKrzOKdHSiYfBmITnT1LawPQLJ1Ly6lM8bQjftqKEcwq+nZLRFzNzsW1bniITNp/8EG0jktgDefENVWNV/QqLZ94ZW7tE97XiiNiW5XaWRW/Q92VALpPNpVTz0w7qgYoSHADp4S2K2GQ0cZ0u1Y7aDGBibloxPPEq64gdHcmanHopfRPIJXWvYvEevaB9VMcFdX5Xi1g==; 20:TQ2VcZ2CePvxMHzph7hkV9EId47CA03mO7wQzwocKODCFxhyHXo2hdvFmpFSHhyoZ9weJK/t0U0gSdBwFm9SBgN8OkHEPvi1rJQ/pJfl98vHesDOmsEAHk5WlBglkcQBATcBeOZh/bSOtEBoOqBTvNRfz+fZx6LGQ4ard/zGzuc= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2017 20:58:51.7366 (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.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR04MB111 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Show the operation name, .cmd_flags and .rq_flags as names instead of numbers. Signed-off-by: Bart Van Assche Cc: Omar Sandoval Cc: Hannes Reinecke Reviewed-by: Omar Sandoval --- block/blk-mq-debugfs.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 69 insertions(+), 3 deletions(-) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index aae4b7c7b7b0..161f30fc236f 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -258,13 +258,79 @@ static const struct file_operations hctx_flags_fops = { .release = single_release, }; +static const char *const op_name[] = { + [REQ_OP_READ] = "READ", + [REQ_OP_WRITE] = "WRITE", + [REQ_OP_FLUSH] = "FLUSH", + [REQ_OP_DISCARD] = "DISCARD", + [REQ_OP_ZONE_REPORT] = "ZONE_REPORT", + [REQ_OP_SECURE_ERASE] = "SECURE_ERASE", + [REQ_OP_ZONE_RESET] = "ZONE_RESET", + [REQ_OP_WRITE_SAME] = "WRITE_SAME", + [REQ_OP_WRITE_ZEROES] = "WRITE_ZEROES", + [REQ_OP_SCSI_IN] = "SCSI_IN", + [REQ_OP_SCSI_OUT] = "SCSI_OUT", + [REQ_OP_DRV_IN] = "DRV_IN", + [REQ_OP_DRV_OUT] = "DRV_OUT", +}; + +static const char *const cmd_flag_name[] = { + [__REQ_FAILFAST_DEV] = "FAILFAST_DEV", + [__REQ_FAILFAST_TRANSPORT] = "FAILFAST_TRANSPORT", + [__REQ_FAILFAST_DRIVER] = "FAILFAST_DRIVER", + [__REQ_SYNC] = "SYNC", + [__REQ_META] = "META", + [__REQ_PRIO] = "PRIO", + [__REQ_NOMERGE] = "NOMERGE", + [__REQ_IDLE] = "IDLE", + [__REQ_INTEGRITY] = "INTEGRITY", + [__REQ_FUA] = "FUA", + [__REQ_PREFLUSH] = "PREFLUSH", + [__REQ_RAHEAD] = "RAHEAD", + [__REQ_BACKGROUND] = "BACKGROUND", + [__REQ_NR_BITS] = "NR_BITS", +}; + +static const char *const rqf_name[] = { + [ilog2(RQF_SORTED)] = "SORTED", + [ilog2(RQF_STARTED)] = "STARTED", + [ilog2(RQF_QUEUED)] = "QUEUED", + [ilog2(RQF_SOFTBARRIER)] = "SOFTBARRIER", + [ilog2(RQF_FLUSH_SEQ)] = "FLUSH_SEQ", + [ilog2(RQF_MIXED_MERGE)] = "MIXED_MERGE", + [ilog2(RQF_MQ_INFLIGHT)] = "MQ_INFLIGHT", + [ilog2(RQF_DONTPREP)] = "DONTPREP", + [ilog2(RQF_PREEMPT)] = "PREEMPT", + [ilog2(RQF_COPY_USER)] = "COPY_USER", + [ilog2(RQF_FAILED)] = "FAILED", + [ilog2(RQF_QUIET)] = "QUIET", + [ilog2(RQF_ELVPRIV)] = "ELVPRIV", + [ilog2(RQF_IO_STAT)] = "IO_STAT", + [ilog2(RQF_ALLOCED)] = "ALLOCED", + [ilog2(RQF_PM)] = "PM", + [ilog2(RQF_HASHED)] = "HASHED", + [ilog2(RQF_STATS)] = "STATS", + [ilog2(RQF_SPECIAL_PAYLOAD)] = "SPECIAL_PAYLOAD", +}; + static int blk_mq_debugfs_rq_show(struct seq_file *m, void *v) { struct request *rq = list_entry_rq(v); + const unsigned int op = rq->cmd_flags & REQ_OP_MASK; - seq_printf(m, "%p {.cmd_flags=0x%x, .rq_flags=0x%x, .tag=%d, .internal_tag=%d}\n", - rq, rq->cmd_flags, (__force unsigned int)rq->rq_flags, - rq->tag, rq->internal_tag); + seq_printf(m, "%p {.op=", rq); + if (op < ARRAY_SIZE(op_name) && op_name[op]) + seq_printf(m, "%s", op_name[op]); + else + seq_printf(m, "%d", op); + seq_puts(m, ", .cmd_flags="); + blk_flags_show(m, rq->cmd_flags ^ op, cmd_flag_name, + ARRAY_SIZE(cmd_flag_name)); + seq_puts(m, ", .rq_flags="); + blk_flags_show(m, (__force unsigned int)rq->rq_flags, rqf_name, + ARRAY_SIZE(rqf_name)); + seq_printf(m, ", .tag=%d, .internal_tag=%d}\n", rq->tag, + rq->internal_tag); return 0; }