From patchwork Fri Apr 21 23:40:25 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: 9693985 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 7533F60328 for ; Fri, 21 Apr 2017 23:42:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66FB82865C for ; Fri, 21 Apr 2017 23:42:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BDF528668; Fri, 21 Apr 2017 23:42:12 +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 62FBE28687 for ; Fri, 21 Apr 2017 23:42:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1426866AbdDUXl4 (ORCPT ); Fri, 21 Apr 2017 19:41:56 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:41155 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1426099AbdDUXkk (ORCPT ); Fri, 21 Apr 2017 19:40:40 -0400 X-IronPort-AV: E=Sophos;i="5.37,231,1488816000"; d="scan'208";a="12229895" Received: from mail-dm3nam03lp0017.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([207.46.163.17]) by ob1.hgst.iphmx.com with ESMTP; 22 Apr 2017 07:40: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=uir9lwpVBAUZjPZQ7fvWGFKdelEhaeN2WfTVntEwKPM=; b=Zahk9IRMG3Q2MagUtYFpCFPMRsOShNfifjHahekKkwZqu4BHbjIDm6LD3hxROJ3hm6rP51oIDs3LaOAq/BD9C5hwxPBoVrkFiIzr1PKcGGZgLS8/WXK0dRVKJ4HmPm9dSlzVeabuELv+BL96r4lpwfwg5sJK6VhUHf1650UvbDo= Received: from BN6PR04CA0010.namprd04.prod.outlook.com (10.172.194.20) by BY2PR04MB887.namprd04.prod.outlook.com (10.141.219.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Fri, 21 Apr 2017 23:40:36 +0000 Received: from SN1NAM04FT052.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::209) by BN6PR04CA0010.outlook.office365.com (2603:10b6:404:cb::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13 via Frontend Transport; Fri, 21 Apr 2017 23:40:35 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; 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 SN1NAM04FT052.mail.protection.outlook.com (10.152.89.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Fri, 21 Apr 2017 23:40:35 +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 EC.22.29323.1789AF85; Fri, 21 Apr 2017 16:40:33 -0700 (PDT) Received: from milsmgip12.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; Fri, 21 Apr 2017 16:40:30 -0700 X-AuditID: 0ac94369-548749800000728b-be-58fa9871933f Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id E3.66.18148.E689AF85; Fri, 21 Apr 2017 16:40:30 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche , Hannes Reinecke Subject: [PATCH v4 09/10] blk-mq: Add blk_mq_ops.show_rq() Date: Fri, 21 Apr 2017 16:40:25 -0700 Message-ID: <20170421234026.18970-10-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170421234026.18970-1-bart.vanassche@sandisk.com> References: <20170421234026.18970-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJLMWRmVeSWpSXmKPExsXCddJ5kW7hjF8RBnPfWlmsvtvPZrHgzV42 i723tB2YPS6fLfVYv+Uqi8fnTXIBzFFcNimpOZllqUX6dglcGTd28RV08Ve0TdvE3sC4iaeL kZNDQsBE4tqZHSxdjFwcQgJLmSTufrrKDOHsYJT49GULkMMBVrVyvg1EfDOjxPFrSxlButkE jCS+vZ/JAmKLCChI9PxeyQZiMwsUSVw73sYMYgsLWEkcOr4JzGYRUJV4/vIwWC+vgIPEtrXN rBBXyEuc3bITrIYTKL68/SiYLSRgL3Gtu48RZLGEwDcWiU8r9zJBNAtKnJz5hAVimYTEwRcv oBrUJU4umc80gVFoFpKyWUjKFjAyrWIUy83MKc5NTy0wNNUrTsxLySzO1kvOz93ECAngzB2M d594H2IU4GBU4uFdwfIrQog1say4MvcQowQHs5II7/FpQCHelMTKqtSi/Pii0pzU4kOM0hws SuK852SmRggJpCeWpGanphakFsFkmTg4pRoYG5bsO23Y9ufpDnerfcZ3mFlYnn729QnMK35V lzjB38woXLvG8MIW7mqmbfP/NsddT/n14d9CycnPJlcqSPO3Nm2RW/jqfYJ4usgcF1vGrS4f rX6acH3svrT7SH1np6ri4eT0dGU/44czr7btvfn1p87qExpPZnPM/xzKETl5bXM862xbVpW9 SizFGYmGWsxFxYkA3Akf+lwCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBJMWRmVeSWpSXmKPExsXCtZEjRTdvxq8Ig74HrBar7/azWRz82cZo seDNXjaLvbe0HVg8Lp8t9Zi25jyTx/otV1k8Pm+SC2CJ4rJJSc3JLEst0rdL4Mq4sYuvoIu/ om3aJvYGxk08XYwcHBICJhIr59t0MXJxCAlsZJSY+eYKaxcjJwebgJHEt/czWUBsEQEFiZ7f K9lAbGaBIolvu1aDxYUFrCQOHd/EDGKzCKhKPH95mBHE5hVwkNh/5ilYjYSAvMTZLTvBajiB 4svbj4LZQgL2Ete6+xgnMHIvYGRYxSiWm5lTnJueWWBopFecmJeSWZytl5yfu4kR7HfOqB2M 1yeaH2Jk4uCUamDU59ITEfwl0p21i/X68vRt72KnXXNUO9ulUvGR3+qk3J2zn/68S7LZmSzx OmKSi1hrWeMtoR+91fMOpfzSnMX2U+72zfM5slfvsfF7n2OI1jKVKltx2U+i/CiDUTtn2wGT kADpbeu1eurb2kwfcQbOiMo5u1V4/aIFij6fZRRKNZ6a7fL6G63EUpyRaKjFXFScCADBkLrH qwEAAA== 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)(39410400002)(39450400003)(39840400002)(39850400002)(39400400002)(39860400002)(2980300002)(438002)(189002)(199003)(9170700003)(47776003)(356003)(36756003)(6666003)(77096006)(54906002)(2950100002)(53936002)(2906002)(189998001)(81166006)(33646002)(6916009)(86362001)(48376002)(305945005)(50466002)(106466001)(5660300001)(50226002)(76176999)(5003940100001)(1076002)(8676002)(50986999)(38730400002)(110136004)(4326008)(8936002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR04MB887; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT052; 1:lnW/YNkzu89mvE7Z54poXfBZYM5B0Zmg40y7lXL7VBh8OU5g9yvTeBLQzd7Kt1fkCkwbrZf+2DTf+m/1m09vDLwn6rL4mLL1dMCuTlYYHfjZfYWRVOD4IYjjN2VbgIJHaFeWkZ4WYUmJXr/x8NX7IKAVbgtF1dpyehircIEIj6Fvda7fqbVo9+dYIgbsV6uMEgAF3m6/52EwuaqkRge16dhNcXHB0rcTSm4zTfC8tF9P8QJ6XM9/U/NfKynELqrvp7OrMli9Vu+jQy5AdC4mzlSVne7zCI9TYASrObZwoyoRz1mWfqnHzwXHs2aGUl1o8QkHrv5jg0eYH9ev0prRL6AjrAMvmw0vtfc6ac5LLko5jmEndXfe7qSXK2/M6veizYvBVnk844pCXNzLchEQXcczVsjLbbwNtkZruToRWBmsUgRshaYrFNW0yNAWoUs7w4UbQTdTbG6dfUMIntZ+6KAROVur/DUFYdOWASssoVUUxW+Vo1QPWSmh9FzjeGBB X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 17ea27ed-352c-41b4-3045-08d4890fcf26 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BY2PR04MB887; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB887; 3:4FcYRYSyGXXPdT3kuidEcyjccY2ovHt+QigD2/lsM/1tPoOR/UQ4trsfYqEXEBju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B4966MRCH0UiInjcJHUigC0/FjJsi71j606BV5JKVk+o1lSZZrudC2MsAQycVTkK2lgF3/ilLCNA74RDRsFq3co0vwDeAq7PtvNg/r1LqWmmQQjwkDH9tIwvgj3LBn9/lh5zMOhxpsCF/6s2Vrpa5a74uZdP4bw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB887; 20:Zgsy8pSImH5NUS+vFqVL3K9Ufz8WTmMPCMm1pws3NVCoPX3+KHbNfXut3yskQCX72LADDqBNPlBWMwdPcCCsjMzX1JaT2G549MPNNpGWyjhxvetIRPA0c6uQEtlxlIHG8o1IslX8C/Gchnwb83gyjFjByvWg/WjbwzUpd5MHgkJAlD/+Yl0fNfbh3QSKUrM+hYNIWPRmsZZuWrMPPjm/sf4T77xfUQB0B8yYNOjUrKFWFIdjsTS+EoBgP8MRXCBAemKoAmGh3Q5Y50yomALmBza/Zihlyr3Z89DBwR3sqpAwfWWJX1UYz9d1AXeM8i4Q32diIAVMY492dzIoKH1vpQnHjrpogMf0TlgEweEXnBnjmeY+1JqN1Gq8XLHpzDIBrK3/WDvYKdQ9HwVar7LJt0VfkEDnedxCW/ionGAic/KWJ6KFaq6tvoFEO0PCm8wbYJsGdyxhNpaznIcovRoZmGlQwaHqWP49AG7C3Sy4gi6UkEPSmdlbBApNm4XSWhxg 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)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93004095)(6055026)(6041248)(20161123562025)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(6072148); SRVR:BY2PR04MB887; BCL:0; PCL:0; RULEID:; SRVR:BY2PR04MB887; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB887; 4:PYS1gx7maMHf6pc1x3WUy9ALHndjiotM2IM2gs2XVzrmCHX+OSUsk0UFEF991rgy/zp02afBNWrA1avu4Grkzb/PJDydxOAY4t77M2MW4fbdLGm2G84hGzRgCVQZXMSVeixyd5lVmdkA7d/dDxfDY45cMxNxlIV75pWFtq6wqRvqVJfVsh/B177G0wWi7dVekfq+LoLnIPgHij8bA8dd+a28QBCcG9RDcKaUtGrciFyyJrW7vspMooovDXPBIOBhOooNMy4GDZRznDl3dlNKXTaOqman4OiL6BuMLYcmN9K7KXmEsT/lDuqlW3Oan77lFamFPaiskxzjiz3bo2cXgrXu0dbhpa4JalKP2s6B91T4BilE9OaCMpy8xBpvovoKsT3fBylLaVq6qCHQe9Ci2u87fiiABvtSHxeWTKbscv3w9RyiocIYWvvfRuVreR68j2rAtgRSuoSnCB7UvFpLpYFelvgtN450if5Dl3CVh8MjYiZze5+GE//YUzI/+7cwXEM3dukHr+bMvEPnI557h/ECwiUwKC0EEqX3+C7o1puyUKQw0OZaZMaYolknP1Tki29Wr171kTdUzXjFrVP4skZsdOY97qJag4AZql53gIr4DVj9cotZCSQ0oKEuC7hfcrpp47BCL1ThCfM7c1WvfC8uTKL+v75OJ0NhWoF2mC/MY2Fia05vHzHmc2d1AWf5J4F+xHfgS5X3Mw5XN4DC1mlKu+MaO34ckyNtAwZuK3baImdg0xWPaXGA9dk3OV4yWZw+jYvhNmNp2GlnX+oNgak4niMizjt3zcYYOkv7fDJsjVoTtip51wD2PmkZctMk+Esc3p9486kn0F4yt7zpapttf0iRtMe3CIEiNFBcg04= X-Forefront-PRVS: 02843AA9E0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR04MB887; 23:+jEK4Mz4vNt6Ug2aKLPSwjUjwf6yZTMO7XOg/lEnkl?= =?us-ascii?Q?WEVBJouSKW0l65xsVs9rytTMzDQWIE3twsLyn+CbA5BYsxjghWpVO0wOy1Hi?= =?us-ascii?Q?mHXXyAE7lOrefxEg34ChG3VgY9il3/AICxXyFRHWFjmKglXF7oL+ynJwXnDA?= =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YYIoI2ketBv+tGdlddl8yZnsJc4KsQYBXYrMjtTEKSoloITLuoC2FsEEIQplUOB42bVFCryv+1BG9joMaES02asEFGZg6L6CcSf1CRB707BYf63KFdewHvCOKuFsRCq01ikZQcYFpLYRClgDMnLRJEcuTuz5+MH2bGIIUE8xI4FuS7frc/zFHPWUKllC1ZOYiuUL+DrAvKn1x6StnrB2u/khCp8m9HA==; 20:R72l+vR9dqSYuyN4gyp1H8Uq65TFJxkmv9Nl1pC1bkvE4nK7HLn+Xz3u2eLKvfF4Y97e/VmIX4fqze3ibP2q7GbPSHwGf0sbxZ46VT/8t7Y6IPbVuVRWcYyztQkw6HJzXdlMtlV753365RqKQVJN1ClhQCSPfrjjEWr45/sy4jM= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2017 23:40:35.5858 (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: BY2PR04MB887 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 This new callback function will be used in the next patch to show more information about SCSI requests. Signed-off-by: Bart Van Assche Reviewed-by: Omar Sandoval Cc: Hannes Reinecke --- block/blk-mq-debugfs.c | 6 +++++- include/linux/blk-mq.h | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 3a99146ece39..c5eca9245459 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -311,6 +311,7 @@ static const char *const rqf_name[] = { static int blk_mq_debugfs_rq_show(struct seq_file *m, void *v) { struct request *rq = list_entry_rq(v); + const struct blk_mq_ops *const mq_ops = rq->q->mq_ops; const unsigned int op = rq->cmd_flags & REQ_OP_MASK; seq_printf(m, "%p {.op=", rq); @@ -324,8 +325,11 @@ static int blk_mq_debugfs_rq_show(struct seq_file *m, void *v) 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, + seq_printf(m, ", .tag=%d, .internal_tag=%d", rq->tag, rq->internal_tag); + if (mq_ops->show_rq) + mq_ops->show_rq(m, rq); + seq_puts(m, "}\n"); return 0; } diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 0c4dadb85f62..b7bf11c05568 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -121,6 +121,12 @@ struct blk_mq_ops { softirq_done_fn *complete; /* + * Used by the debugfs implementation to show driver-specific + * information about a request. + */ + void (*show_rq)(struct seq_file *m, struct request *rq); + + /* * Called when the block layer side of a hardware queue has been * set up, allowing the driver to allocate/init matching structures. * Ditto for exit/teardown.