From patchwork Tue Apr 18 23:29:47 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: 9686673 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 CDA7D602C9 for ; Tue, 18 Apr 2017 23:30:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF9C220265 for ; Tue, 18 Apr 2017 23:30:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B43C128236; Tue, 18 Apr 2017 23:30:29 +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 8816C20265 for ; Tue, 18 Apr 2017 23:30:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758251AbdDRXaI (ORCPT ); Tue, 18 Apr 2017 19:30:08 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:57191 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752890AbdDRX37 (ORCPT ); Tue, 18 Apr 2017 19:29:59 -0400 X-IronPort-AV: E=Sophos;i="5.37,219,1488816000"; d="scan'208";a="12099966" Received: from mail-by2nam01lp0175.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) ([216.32.181.175]) by ob1.hgst.iphmx.com with ESMTP; 19 Apr 2017 07:29:58 +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=VTMR4DHZJhx3yv/zRaHzSNKzmF8J/s7NxGYUzOvCB7Q=; b=k619G8wH2xAw9GNfS93/tq0NdxuDw6Pxy1phQhrUE46xUZjoJ8CeyD6hSJ5NH1Iy4DaQxr26xhnGV8pVDTNEorPSusk5cy65YGuYhnQP7ml+7ycPGs4IafqKuheSiLQbZ6eWsw3PW3h4qV9X/iS8Uqci5SWEdunFTDmatH3wKoE= Received: from CO2PR04CA0059.namprd04.prod.outlook.com (10.166.88.27) by BN1PR04MB261.namprd04.prod.outlook.com (10.141.65.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Tue, 18 Apr 2017 23:29:56 +0000 Received: from SN1NAM04FT048.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::204) by CO2PR04CA0059.outlook.office365.com (2603:10b6:102:1::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10 via Frontend Transport; Tue, 18 Apr 2017 23:29:55 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; suse.com; dkim=none (message not signed) header.d=none;suse.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 SN1NAM04FT048.mail.protection.outlook.com (10.152.89.195) 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, 18 Apr 2017 23:29:54 +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 50.8F.19026.071A6F85; Tue, 18 Apr 2017 16:29:52 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Tue, 18 Apr 2017 16:29:51 -0700 X-AuditID: 0ac94371-41ba798000004a52-b5-58f6a170b1dc Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 7C.84.18148.F61A6F85; Tue, 18 Apr 2017 16:29:51 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche , Hannes Reinecke Subject: [PATCH v3 6/8] blk-mq: Show operation, cmd_flags and rq_flags names Date: Tue, 18 Apr 2017 16:29:47 -0700 Message-ID: <20170418232949.5228-7-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170418232949.5228-1-bart.vanassche@sandisk.com> References: <20170418232949.5228-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrBLMWRmVeSWpSXmKPExsXCddJ5kW7Bwm8RBmt+6FusvtvPZrHgzV42 i723tB2YPS6fLfVYv+Uqi8fnTXIBzFFcNimpOZllqUX6dglcGd9XOxYck6qYerODvYFxklgX IyeHhICJxOwjP1i6GLk4hASWMkkcvfqDDcLZwSix78BDxi5GDrCq/zuhijYySty7fp4ZpJtN wEji2/uZLCC2iICCRM/vlWwgNrNAkcS1421gNcICPhLbD9wCi7MIqEo8XfyZFcTmFbCTOLFt IyPEFfISZ7fsBKvnFLCX2Hz9LFhcCKim88kJqJrXLBLbJwhB9ApKnJz5hAVil4TEwRcvmCHq 1SVOLpnPNIFRaBaSsllIyhYwMq1iFMvNzCnOTU8tMDTRK07MS8ksztZLzs/dxAgJ38IdjK9v ex9iFOBgVOLhNRD/FiHEmlhWXJl7iFGCg1lJhPd8E1CINyWxsiq1KD++qDQntfgQozQHi5I4 b5bs1AghgfTEktTs1NSC1CKYLBMHp1QDY8l6b6OJ4ntOaheeCGN0r90aXSXVnfrto3FOe9P/ HP1/8ebTlBSOMbscXTR1n86iJVqtNdc4oyzqWPo2Ziv8na1yad9HTSm9rFPKVxJyRTdLhHZt FxH7unvDTQ/ppVKs35cHV1+OZH0/p0ZrevBJP7Uza6IND3zh3aF6WFkiYcK0TzI3mAouKLEU ZyQaajEXFScCAHrGHsBbAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprOJMWRmVeSWpSXmKPExsXCtZGTTTd/4bcIg6N39S1W3+1nszj4s43R YsGbvWwWe29pO7B4XD5b6jFtzXkmj/VbrrJ4fN4kF8ASxWWTkpqTWZZapG+XwJXxfbVjwTGp iqk3O9gbGCeJdTFycEgImEj838nSxcjJISSwnlHi8IRgEJtNwEji2/uZYHERAQWJnt8r2UBs ZoEiiW+7VoPFhQV8JLYfuAUWZxFQlXi6+DMriM0rYCdx8uQTsLiEgLzE2S07mUFsTgF7ic3X zzJC7LKT6HxygnECI/cCRoZVjGK5mTnFuemZBYZGesWJeSmZxdl6yfm5mxghXo/awXh9ovkh RiYOTqkGRia7zxFOznXTlL5rdkvrvPvhH1m9KmjS1RAV8+flv1SnXN3fV5n8TNZU60xe9TJn UzbNRwbe5pOuzmDMdJCO1Pj5tO3HttB6lR2eRT/3cwuuc1nbvdT/qgfbRtUVHlW9K6q2n3ul In7uceH0W5mite8vrpX4tnBmjE3xk15bv3ZrmxfHDt9uUGIpzkg01GIuKk4EAACFCGyqAQAA MIME-Version: 1.0 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)(39410400002)(39400400002)(39860400002)(39450400003)(2980300002)(438002)(199003)(189002)(9170700003)(86362001)(47776003)(305945005)(8936002)(106466001)(81166006)(50466002)(50226002)(1076002)(5003940100001)(38730400002)(8676002)(4326008)(5660300001)(110136004)(48376002)(77096006)(2950100002)(76176999)(53936002)(6666003)(2906002)(6916009)(33646002)(189998001)(54906002)(356003)(50986999)(36756003); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR04MB261; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT048; 1:sRUKkMLgj88MlrgSBsXmxA/ESJUf6n58QDT19LNtglv+oEriHjeJN0HsYS8pyux4M8FL1oXcvnraV3lW5/ZeVNYeFOlQrF7J3Pdx6VucElEeNe6aqAwNx6CaIImVBUKAD6wZwQm9bn5gkkREnHZh1o/7PCbjzBOspcr8XOQoDWUBKDCO8I03Rm+6znZ24I1+1Wip8JpruIARV+ep4+KfSRaS8r19NPhrb7uf7g3Bt6iOJWaWIzZcdLlFHAQb8EjlGOsPStGhP1OVlTj6gz/gpscXlSKLE7t5hKx0m3RaYJInmp+Sj9UMdutEmaspL8/NRKwIxTwf/zz/d8W45UsXDCiLV9pk+qUPK0uwga97kz4e4wX4fk2QlPddB41gpe3b65+Odxf+nVOAQmZVVU8SyISfHYO+q13808X/hVTiRkW+FYA/cjOb9+Di9K9gdcxf41+jNf+zKU5Dq94lWwJ+bYNCo6p1oghs7LMjxR+51i3u1yPyCnHrDSF9WKmjnVXQo4lGK1JgT4P/UF2vzWpFLtdE3G/303+X6FYC1n76QuI= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1a6c8603-8f1d-4a5b-37b8-08d486b2d1dc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BN1PR04MB261; X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB261; 3:M867DJvAGIhQgoDpBAn78FrT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gnQOgQVSeehins/iLsxQ/RjdEEnlMWHQLsmiHazSR0eDHIGJZVom9hB4UyS7WmQbnKXivOHWY86DlOodbZhL5khzKx8dsGdiczZkPsF5e7YPz2U9MoHcpLOKE2dUJFCqopHFR5dP764aDmofglpca6pbVwajn6Mgp75tCLlGLc7PRws79 WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB261; 20:+UMNHdWfdJbBOamWWRGH9qxbaqJkMw8nZ0IxEibVNuD0TFo89ZdFDWeOtDonDPUQeMm6dpq04vJQGPdRL5/gTLHi+ecvkWc9QWok/3uGOsMFgB/dZdtFIRI3Xo/ej0DHbi13q+T+qwH1ggyC4wybLzECVIgIbdc3LNBGJ6O5K4HJNiPjYmy65qsGaRTFr/qG2wQJezggWJlFwaTLxdkNLJq5ifa9AahkI+cm9AmyUilaeH9RqAXSkJCTQEPMnRiSR46K3uoVOfCNPzqsT4qUtPd3050mxOXLWyu2we2SxnnlAin4jizs2FAsXljRE7MpYxqgXQ7MH56hTUgWn/WV6YP/AMcayzva0xekXQD7qEf6wQpLN7scgCKyl5SSc1vAjhtO2G3+j6AJj9G8GKyM9QBGnL5MMKpZwlP50IaRemFHmhA4bULN7jrvVYiHNOtu79Xjkb5YoX2184W6A+1HA5W+DeCbnDXyMcttC/RvETffXIdUlRHBHm2AvPwoYW5G 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)(5005006)(8121501046)(13016025)(13018025)(93006095)(93004095)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123564025)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BN1PR04MB261; BCL:0; PCL:0; RULEID:; SRVR:BN1PR04MB261; X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB261; 4:fYsJl0YxaZqkDp+PWv/KM07/F7OyrIS6wntglFYrJg0gf3dO0f9CZVocek1LvLN0kaRlkFzwKtu+1CvXxDXsHue/GCAMdn0kcKFloKbghS1u1N97HJCdOcE/qFG/Exbo03NFHAxxkz/dosPomjnPSdm+QT4t9zTgU+tD/SJLGXEDPV8NMaeKpW8jO890Yzuypbpo53a1VBAzdyMUvNcxHbmTS2o9qqmj2q9kwdUsW4HNUJm60KlJtuNxSiUES+9IxAX04gfl47IUqFGh7nzRF0wKpq/LLvjpubm2D0yTJ+nmN6ja1k18LMb6Ji+oraQceZvbpXjOf/Oq20erGJC2aRv6hbOrkUtS0agdjHDqt4mUYmIuA08lojlZGhz4CoDeQV5FHk8a3h+Gm79S1TedeHGPtQzaNd0v3VJ+9yODLHjCMXCwFhADKBE5GUoFhjb4iT6WoPh6fGgFniZYX4A8203A9nVxCqL+3c6fMZB/To4Fb1QFgx1HYMB8a5sSewAtMlG0Je8SncxEAlkaFQ/ByOHwm5ClVTIRElKSeG/A5uLt+dRNAW3F355zgO71IZesFUqOeYqQKmGloac/ByTH5fQZTvm1warsxP6ijLF8K/07dRhVFGU/xX+8otTBC0h35GKn++XGeud7hz4SHJFHCoJzszhwbVTcpFaxwDe7HhTvoaphVMADUfiuonzjMtqPZNdhRndvYQ61NyFTLwNI/EOBanqPMuClDpxfx8y4BqlfcpSObRp5Fjraz/tgRa8LtczYL7z3O4T1t/SNCHHsAkGPWflX1D2X3FXBFOYU9/LqZDa3z9ookJthrU0syggQq4d53biJfzl2RQbUalOEKVCY9ON1FdxvV8y4ChJaZLI= X-Forefront-PRVS: 028166BF91 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR04MB261; 23:GrArNhiqij/1XPF+CxXaRyjUYq+7Qlukaz2YBzu1zO?= =?us-ascii?Q?Lxt7BFINz6PzfU0saR9TIQikH1/3FgHollYz0vBzRlJlvnzAqt0Jyw/IuQGi?= =?us-ascii?Q?geCSb9jF8rvJI/xOYNxi/DnUi0YDElr3MdrFjoJsT33tmjY1mnH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soft-Exchange-Diagnostics: 1; BN1PR04MB261; 6:32AXugfTxtcGpuWCq25to16Crr6W0YGe4FuUIqQMuSQGEF/Lh+lZym6tI7GUhCPGpgjvTLSxqaxyHKP80wE7sjKN1BbnzLsi6Uj6ZH3TtGrduDqtdPUhYLKwI23nhERyhr0jXcaqjZ9vmf1Tqa5xTu3TBriQb2b7H73VztwIoM//7TsM2ccJUCvz2Lz5UvJPJrtyDbGleWKBqjPbzXubvNJoLBPvVCnUDbZXb2/2RMSyC/fR2WJ17L6xowYadByPR1JzdeW5uYNYaxuzOAinOZeU4+0rnNcH2R3thIbsk5H6c5j4TkJe4dR3PLNA0Xnapx3W6710ujmTQin49EAUcxlxkXZSZjjXRnbCwWWO6qEZ1p1NvqwD5m4TgvrwwrLWaFHPl7X2Ty/oydgOjq0tCt3D/yZcuV8sEaxb4CtWWmKUIEuQkmd9AzlPEgB5/NdLSbZCBnHZQLiZS8YWpUIw52cpAPaGJK+OHleQP5g+n3Kr031W1AvlK4weBOjKCZ6JVEm/Q56/Y6wT0ukopQzcilKBKANVrM/nt8PIRh24pos=; 5:W7r6vVEkHa+WaYsUdWHLuGx5uTakSYm49n6j9ROJzuMPPw48RapGsgRPnZm1ooJNWafDM6R5E8YVDHZmz+ui5jXZqbGWqBw9fI+7kXA9Nr517gAKro/GQqltS3oc56UggS/V8pft6oWrWVxRkyPDIg==; 24:wSbgfNOef/LN/SAGSEbCRJB9dq5tN43CU071jpj98VMKuh3NbJMSqthEjgctB1gTqOwg+E5oL501I5YwIkEnyRxhaTcSzPaPF4EMk744Xng= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB261; 7:3h4rO5wZfVyVq94zWucotuZj36JrJKm6668weW2bR+Mvwn146oHWfZlgecIhTtalx6tt8W7g8g9XIlD1+abKEMHaPxIKkgZDmHj4WgKqtQYicHG+b5eCCiASosT5UOSphdqKRLPEBQvgUCxnoM7oKkxVZH7sxRoWjKdBs8I20UOP6BxQOziJ5ykbCfY6TYxgln+/oDNkvHQs5gUWEyj8oK9Z9m5+32gkCNoLRbHXUccF7V2NmwkofTCJWZMGG4oiDudLxR9FfoAca7blMcy+F0f7N7bSa7vWNvAJz5AU2x/xZhuVFsr0B6+xdqL2jgjxjQrtLNcyEq0ch/zUsbgTGA==; 20:zUTv27Dv711uaYWXGH4xf248Nf0Yx3Ow3tthzEZLn+ahJAmVM8wSgyucFQyXA4IGNXNzCdKTKOnsCk4aG/9X3DnlALKgh5rkZsZodOHew8l2hn07N937CCvqSJQ8mY5g6/pjAcbKsFP7GrnqZzXWPvveB6f7zvbSexOLr6JZtAo= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2017 23:29:54.2847 (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: BN1PR04MB261 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 Reviewed-by: Omar Sandoval Cc: Hannes Reinecke --- 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 27054293b37b..64b584ba576a 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -250,13 +250,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 & ~REQ_OP_MASK, 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; }