From patchwork Tue Apr 11 20:58:41 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: 9676061 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 17283600CB for ; Tue, 11 Apr 2017 20:58:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C44926E96 for ; Tue, 11 Apr 2017 20:58:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00D5E28512; Tue, 11 Apr 2017 20:58:57 +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 8716526E96 for ; Tue, 11 Apr 2017 20:58:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753566AbdDKU64 (ORCPT ); Tue, 11 Apr 2017 16:58:56 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:18003 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753553AbdDKU6z (ORCPT ); Tue, 11 Apr 2017 16:58:55 -0400 X-IronPort-AV: E=Sophos;i="5.37,187,1488816000"; d="scan'208";a="9831788" Received: from mail-co1nam03lp0023.outbound.protection.outlook.com (HELO NAM03-CO1-obe.outbound.protection.outlook.com) ([216.32.181.23]) by ob1.hgst.iphmx.com with ESMTP; 12 Apr 2017 04:58:54 +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=WUTGy7xWFWGxblRLPMgGjgJ6ACguKkdd3ulDU9JQZ1I=; b=Kp/NnUKLvqLZ3aF9zfmu3oE8GlUUqGW22SwNMAtqPTmAnZrXzoKhirtrxsQJyYQBiMz0VFEXq8GfeoxzKlTLRFLY3FFLglzzp74palV0uazICXX7KpDtuC0lZfCsB4OWPKImmWQ7kBPuPCoQP2MOn9bFSBnhXpYUlBhXIsV+o6I= Received: from BY2PR04CA046.namprd04.prod.outlook.com (10.141.249.164) by BL2PR04MB099.namprd04.prod.outlook.com (10.255.231.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:51 +0000 Received: from SN1NAM04FT033.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::205) by BY2PR04CA046.outlook.office365.com (2a01:111:e400:2c5e::36) 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:51 +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 SN1NAM04FT033.mail.protection.outlook.com (10.152.88.101) 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 CB.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-16-58ed438909fc Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id D8.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 5/6] blk-mq: Add blk_mq_ops.show_rq() Date: Tue, 11 Apr 2017 13:58:41 -0700 Message-ID: <20170411205842.28137-6-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+NgFrrMLMWRmVeSWpSXmKPExsXCddJ5kW6n89sIg4YOIYvVd/vZLBa82ctm sfeWtsXhe1dZHFg8Jja/Y/e4fLbUY/2WqywenzfJBbBEcdmkpOZklqUW6dslcGU8WnqJqeCw QMWb77OZGxhP8HYxcnJICJhI/Gg5w9rFyMUhJLCUSaLx1kN2CGcHo0TnyqXMXYwcYFVfLxVA xDczStw5P4UNpJtNwEji2/uZLCC2iICCRM/vlWwgRcwCUxglpp37wwjSLCxgKrF7vTKIySKg KtG6KRCknFfAXuJ030VmiCPkJRZtmgE2hlPAQaL/8i8wWwioZsXRKywgIyUE2lgldj+fzALR LChxcuYTMJtZQELi4IsXzBAN6hInl8xnmsAoNAtJ2SwkZQsYmVYxiuVm5hTnpqcWGJrqFSfm pWQWZ+sl5+duYoQEdeYOxrtPvA8xCnAwKvHwepx5EyHEmlhWXJl7iFGCg1lJhHeW8dsIId6U xMqq1KL8+KLSnNTiQ4zSHCxK4rznZKZGCAmkJ5akZqemFqQWwWSZODilGhgrQlgT1W2e8nA9 ZBSL9OlMMeHOTnTao8k0o2HODM4tThNfFUQ5apjWzqjl5XN8vWj2kpAl96MKI579iPKrWqcU +tJ0q9wkhgIf37u+8Qt/vWNRfSS1Psthes2L19w/WOvONwR2e1iGVa3lVlmQe3bulC3SNdnb Kk848Hze1zujsnx39p+K20osxRmJhlrMRcWJAI9jcVhmAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIJMWRmVeSWpSXmKPExsXCtZEjRbfV+W2EwWJ9i9V3+9ksDv5sY7RY 8GYvm8XeW9oWh+9dZXFg9ZjY/I7d4/LZUo9pa84zeazfcpXF4/MmuQDWKC6blNSczLLUIn27 BK6MR0svMRUcFqh48302cwPjCd4uRg4OCQETia+XCroYuTiEBDYySrz4/4yti5GTg03ASOLb +5ksILaIgIJEz++VbCBFzAJTGCW+7N3EBtIsLGAqsXu9MojJIqAq0bopEKScV8BeYtmH/WBj JATkJRZtmgE2hlPAQaL/8i8wWwioZsXRKywTGLkXMDKsYhTLzcwpzk3PLDA01CtOzEvJLM7W S87P3cQIDgTOyB2MTyeaH2Jk4uCUamBs3PL5+aS7sy+xTcj6GjT73NcjdoeSNptUSfa7/WD9 /ULzWsP53v1L75q2+QcwX9wU9PfPPp7DlxQdjjS/n7lu/po7+zYKiwVGhsuyFkyYxlSQITPv gb/U6ton5dosPY2sSmvOvLgUsvCuVIs64/X3/5j9qvZt26OQ1bVZdcnyI88vXtkVsP6aqRJL cUaioRZzUXEiACU7j/W0AQAA 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)(39400400002)(39840400002)(39450400003)(39860400002)(39410400002)(2980300002)(438002)(199003)(189002)(9170700003)(50986999)(54906002)(76176999)(77096006)(38730400002)(33646002)(1076002)(47776003)(110136004)(2906002)(50226002)(575784001)(53936002)(86362001)(36756003)(6916009)(356003)(2950100002)(6666003)(8676002)(5003940100001)(4326008)(8936002)(81166006)(5660300001)(106466001)(305945005)(50466002)(48376002)(189998001); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR04MB099; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT033; 1:38JTxwJ/k+Cf4mQ2i++p2C2RXaphRaapd7en4AdcKJJeR0yCpT25C/gb04km4k8U0IoQ8w9TSGPicgjmBtweciqHmJarr982Hb8CMBqfv5QG4PNSpWNB1GVcgcrxHqwcyP1Ra9hldJoTw8LQt+1yI/I2nvmL3GFPTMIu6OQhwLZoqUm32KQIefBluW8hCS5EFLN4RWIUonYPqL/Kb5yWq4KqrwUQHQqgGokYPwkRdbRFLoMpr5rJbxFXHLisJbnMDF6YGkbJnT8k+I4SACWpeAq/TC6O4msVIrLgAHGCKcUbrzIFEH5TLwP3OVAl2KBAPGkFvFa7ZKyNfqz1TtIVJRSCn9APIi9QXZ4R5WUHLP/0v2uOldZAKlV1zdJVtdR/xAJUIxrQzIN7tQZyyv2uTiECipQMzbOkQtywj4B/9wqDYLgqKIimJjXucTIPLNUv4+8d54M1qoY+AI7YfTkN8mrdS87G8EUniw5AC8+A8jhRHHFpzGd2IxBKEoTm23fXlSo6hLffXadfLQTRW74dk+qDfUoe3UnyymA3Tn8ZV8w= X-MS-Office365-Filtering-Correlation-Id: bd9f3553-5b43-47e0-bcec-08d4811d8ec2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BL2PR04MB099; X-Microsoft-Exchange-Diagnostics: 1; BL2PR04MB099; 3:tcXxGb8E4tNq2v/QnbxyKXnXKRFz8RgwfkyJ9mESSEGd+Uub/CXnfQWsHiOgfeFpIk1WkNA0vpQKvSzhhLOuOSszdoUoUm10S0azgrKwME+pdG3pcIdnMdcteAJBIM0LML3ZKx+w55MgyROePw/F4u0YjuSv+EOpSB1F0DVYW4pueoajs34bNiVMiAtyESe+DrTqap79yFNPOAgnq3z34RmApH/cofXiIiVvRuTxoiFyKVG81yItYLpQrpqJTayGrHLTPQXFuP1gozPyu+rid87yLy90jaY+/UNSRxBLsPS/iAy1HR0DX8blXxWvd43luoaHA+AaESFZrdz+t1pEuHAlVjR7j+f20eCnc4/RXB7syfKu+uVPJurJ8MKMb4UwE02HO2yquiO6Hx0OwbV0lg4k82lqGzsnACFW2kMy6OfbUBnx6mul0NntfyuYkWVmZvIf2Blj0DBPVIUw5QNtvYXxjxw1LuxvBnOIBZykKGuTa9GeL5d21cqxPchqykhU X-Microsoft-Exchange-Diagnostics: 1; BL2PR04MB099; 25:TLJ+THLHtxqyYAyanUF3DXjmUKJcl+PudKxyUcaDj5J6oimYmBxJwio4iL4++qlZ1MGmL93dN+Hw3XPCEm7oAMGUHvZMsIDb3dDrcvO9kN6vLIu7AVDELvBpCWg/Hzh1GuBT42Aj+fziTrH9b52VNd3SPGCcBOZbyeF8ZncqFv/8rMwKbL38fJr3r8TAMu5ZwDVpDDP58U7JU3CqP39KMUTSyolFgni/zI1cx7w921zs2FGbk1rgfjIvzY/aJyc9vWej3lt71xAdpnBqX7/Vhti5YAIMbWbk2GaIihGWsBobRxvW/5QfIqdHq/O0flCfSurIJVUGGTo6WqYOyq2aXkRnejUa+HDXHY+KaTPIhx05IWqsc1VyrW+54J6fX88stNbwz+G9qz3bWcRekZ8AejNEo+2ZwaKUrQyEhgdFO+jOW4EXraBeQ1G9xgqOPs+kp56yzaORqMFqlDn0KOSrpA==; 31:XOb7DbzJuwnyYElZdjaWZobgXB51s+UvHIYl1TbZcbGKFbyM6YPZutg+hXrVs7sAqmAknAOdtZK7C/vlNRlD3S3+pN8jskklqpjspBZ3jAfMmel9v+ld94dBVfKUPFhwPXe1W7DloIcSM5KdNOpuAtVTtGr5CcOIPwINCD4HlVrnSH7QsF/v3MrT3OGIKufWnp017vEHto8H9ZOlmGH6F5fZ/zTRLz3x8v4ac1wpQtD9lU46JTPuTYoLVIBEQYHXK3UDudLCVvZHM3C9osdtOQ== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BL2PR04MB099; 20:iveKLyCuPxM03uHyC6eZaxcSjrB71uXm8LIM/SATFm3yzFo/9XSxCkIULKnYqnj/tLQqGjPbLG4sSB7z1PG+YaiPsmOVpW7mD6Ke0b3KyS8fgf09wWamq2DmeQowDRm2mLVet6/yAKteWI4XxkmOWQOHT7MPpKtl40p+G1PABU7RVtVWwSLVNrAutURS4FYlbSL95+Nx7Sito7wun+7SlwF02+GbLqa5ATwuDEhLSDF37Ud35d29TqyjHlwhX/5nSxYncW2usPu9Wneg5wlH/vz0YvoWpZHopZXKfFJfq+lQezy38lH2m69HrAxXuKrgDQPH2UOUFWLOXU1t7m2bLQfuguhF0vtbiIssqzLyZyTqnEegM+Xg3pIoknmQJ1OB5FJTHscwkLRtqlf8XEFWQRGwXRp+4lXzDTYm5UC7P6oP9zy3G45TT6ZmXR9lQ0DpvqGLMnWAmJiGD6YXAJPtYwFAmArkpjxav5egBEah8+IeSukwTcXYEd+TvXeNymGl 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)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(6072148); SRVR:BL2PR04MB099; BCL:0; PCL:0; RULEID:; SRVR:BL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ascii?Q?RVhVHl8dY8ye8dgKybGOQ7RS07xC27aWF2wI3xLVwy+j2H2PXc0HAV3Z115/?= =?us-ascii?Q?gyg5ey6INRDqDFs1NBMmujx7BOn8gSWSDae1vTUZRcmS90SyMBXWdUIHLvG9?= =?us-ascii?Q?ByiZq6cGdThOQQVwzKuzAihPlf?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR04MB099; 6:pi+rdMywTFxOg/bXiGqJrVe4Q4yGJmAUsu1xq0lFmrnryTmTvsaVFwAlAEzCj0kDssUvNGKUZASExm6IZrigVKB5HdktzYCY8aTEJf9yo+OhtxatNoeKIjIHXY50UerZpUZ/y4gIwZk24wU8MB5pd68s6VVh8JS9TPNNV6ijC/qf3SnjVsfBv4afhOgQhWQzEW9twYkU7vyiEfC8W82+cSl2aPyHs5dptXxlYR6sV6vZ8c5RfH1lRBhPQUthyzbJQE6bGQHOld134YMKYfcIt6fbn3diXWycvV9VHX8+3f47+Rzs5kQJSAJZiJhkQOBdxUgmySwBi8o+pshykiYCsgqlxLbIiUoDXAJ78vevyGwwo6t7eMICAAvptStJXR9rNGaHXc1gHLFuc49n5VOzBm7sp3rLe2K++AMSxDlM/zI8iwfgGBIgcRPsyRM7Y4fJob8ymIrLQreF3zkgSOw+F0WKgyYr37+Q3HsZPAy6hD4=; 5:KoY2oAg/baW/UV3Rn462qa4lEkHLIc71J8mrwH9RJyF856n78b9bfIpsg9zFjpou0Gym1hLwUfAJMwHY747QSye079uieM0+K9m1wREXThG2TFDe3nQxfv5lFsRu45d3SuSzoWbBBrZSuTXZqv6d1w==; 24:HitZp0LteiQJadB6KBeeB0CXR5LQnJ/6t0mb2/7cpO53gYGGljynXI4oT76uI8JFy5//nLMJoporQykO+6iM1hMGEQRIVpnlIIuOu7Aj0XI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BL2PR04MB099; 7:PH1Ww4uwYCUNHqPO4uOiKuzOAfLz99bFo7hfQhT387/ZfvaliuU+JWm8HjPWN0gqXloKckl1L+pl4a9ihr4787RWpkhd/DKl8TkmWFe6cINSWX2WbkjQWln4UWlCqKYXhcJapM53GmyCGfxI/HG0CugdL1PfG9qPr5pbTiAQ1o/+or9sQC0Lehk9s5fN0D1ctdFhFsAG+Sx8VbJ9dPLsftWFR94xutcTtZZhUl5JqB9KjfvZWpe4dQytZBprIcZuldaP57CqcyjqJ5HaXGcofhuE61dcmB4NVgV9m1wI45W8qeiyEgbPSEyctC9fPjzZLfZQL+ncLiARIk7izDCOHQ==; 20:k/IUS4M0Qivp0pmDDBFtX54np0v8gdtWPuqurOAY3QTNFSmIeVWl8Koy1jv6rDydONOcyD6jwGeUIvbKEEBv2S9H5sf10MTFHn3Qdb17UWSjFvlz+I/PALGkQQsUdiVag7s3/UxVzhy3hJt0EAs7jhyt5BnaAYdKC190kn10phw= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2017 20:58:51.1025 (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: BL2PR04MB099 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 Cc: Omar Sandoval Cc: Hannes Reinecke --- block/blk-mq-debugfs.c | 10 ++++++++-- include/linux/blk-mq.h | 6 ++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 161f30fc236f..6b28d92d4c0e 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -316,7 +316,9 @@ 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; + char drv_info[200]; seq_printf(m, "%p {.op=", rq); if (op < ARRAY_SIZE(op_name) && op_name[op]) @@ -329,8 +331,12 @@ 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, - rq->internal_tag); + if (mq_ops->show_rq) + mq_ops->show_rq(rq, drv_info, sizeof(drv_info)); + else + drv_info[0] = '\0'; + seq_printf(m, ", .tag=%d, .internal_tag=%d%s%s}\n", rq->tag, + rq->internal_tag, drv_info[0] ? ", " : "", drv_info); return 0; } diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index dea255dee359..de2a1c2ddd84 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -120,6 +120,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 request *rq, char *info, unsigned int info_sz); + + /* * 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.