Message ID | 20170417165651.12693-8-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 A2E8A600F6 for <patchwork-linux-block@patchwork.kernel.org>; Mon, 17 Apr 2017 16:57:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 941DF1FE84 for <patchwork-linux-block@patchwork.kernel.org>; Mon, 17 Apr 2017 16:57:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88FDF1FFD7; Mon, 17 Apr 2017 16:57:10 +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 0F2451FE84 for <patchwork-linux-block@patchwork.kernel.org>; Mon, 17 Apr 2017 16:57:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755972AbdDQQ5J (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Mon, 17 Apr 2017 12:57:09 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:28850 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755591AbdDQQ5E (ORCPT <rfc822;linux-block@vger.kernel.org>); Mon, 17 Apr 2017 12:57:04 -0400 X-IronPort-AV: E=Sophos;i="5.37,215,1488816000"; d="scan'208";a="11126371" Received: from mail-co1nam03lp0017.outbound.protection.outlook.com (HELO NAM03-CO1-obe.outbound.protection.outlook.com) ([216.32.181.17]) by ob1.hgst.iphmx.com with ESMTP; 18 Apr 2017 00:57:02 +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=XpDFtlCSqr3W1OIqcDREc7hQTy3jEaPpxqWb/8WFb4c=; b=itljR6Q5/8NLCSrKQFehHCl3URT4oKoxQCQVt0INe/LH8YhD+4fDagTFE/dhyK/giD+j3ESNU0mIZX86ln2DEhT044RsJkGw3Am3bGzMNKEa/imB5V66HmebqZNSImciwuyUv4iy7EL92EBxa58KpptmaJBHbvsQAoG6fjIETKg= Received: from CO2PR04CA0089.namprd04.prod.outlook.com (10.165.94.143) by BN3PR04MB2227.namprd04.prod.outlook.com (10.166.75.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Mon, 17 Apr 2017 16:56:59 +0000 Received: from CO1NAM04FT026.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::200) by CO2PR04CA0089.outlook.office365.com (2603:10b6:104:6::15) 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; Mon, 17 Apr 2017 16:56:59 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) 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.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 CO1NAM04FT026.mail.protection.outlook.com (10.152.90.124) 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; Mon, 17 Apr 2017 16:56:59 +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 C2.4E.19026.AD3F4F85; Mon, 17 Apr 2017 09:56:58 -0700 (PDT) Received: from milsmgip11.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; Mon, 17 Apr 2017 09:56:54 -0700 X-AuditID: 0ac94371-41ba798000004a52-ef-58f4f3da6df4 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 32.D9.11415.6D3F4F85; Mon, 17 Apr 2017 09:56:54 -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 v2 7/8] blk-mq: Add blk_mq_ops.show_rq() Date: Mon, 17 Apr 2017 09:56:50 -0700 Message-ID: <20170417165651.12693-8-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170417165651.12693-1-bart.vanassche@sandisk.com> References: <20170417165651.12693-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRmVeSWpSXmKPExsXCddJ5ke6tz18iDGasErZYfbefzWLBm71s FntvaVscvneVxYHFY2LzO3aPy2dLPdZvucri8XmTXABLFJdNSmpOZllqkb5dAlfGpVM97AWN /BWzX3xibmBcydPFyMkhIWAi0dPXytrFyMUhJLCUSWLp7gcsEM4ORolrHavYYaqOHr7GDJHY yChxa2oPE0iCTcBI4tv7mSwgtoiAgk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lmTntRb3nYxuyLyL1rOSK0rMFZiKc5I NNRiLipOBAACFozduAEAAA== 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)(39450400003)(39400400002)(39860400002)(39840400002)(39850400002)(2980300002)(438002)(199003)(189002)(9170700003)(50226002)(86362001)(76176999)(6916009)(8676002)(33646002)(1076002)(106466001)(77096006)(54906002)(81166006)(6666003)(50986999)(2950100002)(4326008)(2906002)(5660300001)(50466002)(305945005)(8936002)(189998001)(48376002)(110136004)(53936002)(38730400002)(36756003)(47776003)(356003); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR04MB2227; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT026; 1:kTUDWqyZiWxyu7DKiVUly7Ulp9yD9YIF+apmOce30iKU3yhruWTzlHZVLEo2RDVlLya9HlamFId8Gk1W5HXGvI5C+vo0F7kWswC0DvZz+w8uC9Jc8MPET/Hc2pAGS7+x+oGtvbNUldCrzar+KX7lSCPIhFmI+sVoE52ZYwo/I3PQw12oC2b6hxMAZxW6Fq3VR6M9tfVAkvRano1Cr/EO0dQnjO1iCQNWHEbAIWC3kZeKV309OchToCXbze1V8YEezeyGbu/cXEZf663a0gG97BCdXf4J/Qm7iZTs0yuACQ84ieTDqHBpBgn1J8+ulmwsGYgR5Noi2sNdd16qyBK95PS9vxMu5yIaUCpcqvm8WLFnKgAtDcHnr0SrpgS4gyqAjLMCvRjsfzlWeoy9Tron5cf2V755t+D0VW7EzdoLmRxiaiXHz/G1nS6XGBkv2TgUo4QzXpM29feD71NKZy15mRjK253+7Y4l5n3YaeAHcbrqJu+8vUIxydSqgLxKqjiT X-MS-Office365-Filtering-Correlation-Id: 4db5f28a-516a-46d8-5aca-08d485b2c354 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BN3PR04MB2227; X-Microsoft-Exchange-Diagnostics: 1; BN3PR04MB2227; 3:nFx/35JEavHMZh0Cecbg/MnfD+PdgOqCuKF0AZqa9OvMaAg9K3y89sxffQiJBqChWKh6jQwkvUBmseWf98ekuw2PvCzZpjWWv493Y7RIjClTuQle3tM6cBCYEtfLHaWhCW31+hrWNLgntHxGy24JrjD9tv5lSpAPHnQgF/9yZ+evBhlHPBJ+5t3gOwAXLwtksBoD8VEYv7RVUvgTBB6aOteGNVIXFrxuO9c/MPXYkRVsKXp0neEZPO7yg628GUYaqahecPRcRu+F+C6XXXWyO+RidLdZZR3siOJ9JGH+jic4+afPiXf9eVaJEW8EK75oYxLusCtr49R+eZV7Kd2tQeCpD+CYQccQctu3jxELKeLH+wliky2FStrrcpcL9cs8rNeXOS4gmpctlPM8UAiMLg/J/Lr16RS5vTNCNGufHCz44F5+pqSBWdgqrBk3wKWrcVQg48cofmCpA7jX6Rk47EO9MWcgrKCxlyuTiu8PJ+6IFzD27CYwlLxU6QXSuIjX X-Microsoft-Exchange-Diagnostics: 1; BN3PR04MB2227; 25:tZ526vGId5yOG1aJpqYkVGSm64sFFco6kahSwKMifYU9yGAmdzjZTZeHn55hP53gGj6/3L2PRX652Hau4WE6uxkeC/dJlqCNUJlNZ01EEB2MsxtymNisTAb8mQvkVFjiEM0nDVskcO8DGnKvVc/BnpCeaCNJjXgKKF87Hz59tp8Aa7WO3gN5bStQCVbjUaPKTIlmlAp1SEuaul0eiFdomYf6L7ipv2vUpastTKVZmWqtr35+B55XQdUJzBXhesxdoLz00ivKbOFzsVRTMTtydqRA+qFcPcduQrFnGTxPzHWeOvufXiosBKAzVj2VttFf3GArhCgtvtq3/1baE2ActEpVOKrvi9dqAwkh9DXU8ZT51XiStgl1VAWjb4avw3kPRFHzL14bfgGTbCsKrcE1E3ItodnCXkxBO0w9uKHXJnNaF6VKCxwa53lFRBpKHwgjMwx26UZtLBhl0bXAAI0Fuw==; 31:4KrC0YWKv3udTfEwiENxDtQnqdj2xMzzfVoWyCVmTh9Q7GKxmHy8e8IT1EiU1rM6f7HIkAeEp+uJmJWauX2yVxawIH7u0ZhI3AI8uH1VmUp3czzR4tkycC0FxaJTbY5MIDWka2dStTTXWH2taSc6CUaI3EVh+poxjur5TmVUd4evGmB+iKGK57XM31h5bkIk+zr3HgU50nDKjVaUPbt8A/i3TOY6/ffrEF6F/zMV78Se38sQK71o5Em2iF/3ZMVMLCH1MZ6CsOCkr4ASJH0I7A== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BN3PR04MB2227; 20:7Dc5XKLuzAQDwQgtUcnIPC9lkW+rZaGYE9RkSdjVxkmFUmruCpBrFTnxrze+qHJ5ZvqFpELU7mSjVTlFAl7pZueCVPEfN/uA/KEqHqXqV96jjjbuYrgHHyfPmthT1WFT8Zd9rrJkzaTYG59wiYg+IXskw36GTJa7FlACou3n0gSL46sS55s/zYmnxFIRMlcvkCSTK+y56ws789fNq9vt8pW8fWBgQX1gLN62hSWlfgmIJS33+VQsw1eeNeYk/Vpd2MOwdE7/hQtJAjErlJagGbxvif/wR+VSPTY7yCFeLSMeDQiT6lVaR+ED8TsstI0goBlbHVku0kq8nAjnem6ffTXt26VcIPqVV2DyEJzlZVTuBAE2Q5jWCWwTemt1gJQWwbR/X2X3xlWf44gRJ+oQZJozWmbANv3Bfl+7xUoSX/6Hq5kv/ENVRaXFyIthV7RsIlY9tF0rKJz1Sh4KoAs3l6NJXh89MKyrvvEX6tzVk5EPWwrBT4lHrdBVJ6qcrjlB X-Microsoft-Antispam-PRVS: <BN3PR04MB22278446AE276BA2EAEEE51181060@BN3PR04MB2227.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)(5005006)(8121501046)(93006095)(93004095)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123560025)(6072148); SRVR:BN3PR04MB2227; BCL:0; PCL:0; RULEID:; SRVR:BN3PR04MB2227; X-Microsoft-Exchange-Diagnostics: 1; BN3PR04MB2227; 4:Cm7bH2SimuMWdInYeYb1b4quuhq35+FP4p45C+SVRZqIGgTuLQA+CzadX6Fxpt/fgJbQlnWPpeQpbrAsU38Gl0NExCsf92XWUtK/k6dpu/8Qwgxf7Yh7XxVqIYCkR+AAagCBOG9Vt5fcwLIPvDI0kGuSOobHJXWVCu2l7Uaq7Eo6InApW3ys7SbzvFQZOjbB4bfp4yFswFbxN/4LoKHoqgNzRhlbcZA0DwZynuM9WzH4cCnqnNhEL/j6RfGLXzpLyrYEXCTX4SD3QhAqI5hHHO0bfLUIxmRi+zErf7AJXH0ohOUu1K0cslKaGPuPBj2vF09pyiFVrBM+0t16Byp+Bg7Y9r8/lu5EI6OriQ8S45p2/gFvX+G7eUO/4uMKhBsSD/lB/gDzthnr60d/+x4r1wRD1tob4nfDCMHmqG4k++Kr3yCklcYpEjQTFDbOTz8iStF7xef4vpVz/E5/2vC0ApWTdMG3upY9AAmeMQNZNsfDjpOKVlc+1HqQLeGNt0iXVClx2xBml29C6IjPE+kNm1ONa2jxFXRUuMepBp3OwPKliQb2DkYUOIgL8kkDN7pAhYq4GfZhGRBqMXXFDTGkJdNBKsF2A0Mwn52UKXQ5RKiX3qr5ZWyGwfuIa7EFba7FF0OTNv+dUsf6nNy0JGioPscdqsYNuRGLYZDVUhIkQzJ5y0/zcZnU3Es/nz3iZgEWYlA3O5/uDIZ7qIl9vQq83iPwdUXsZ6E3kPj8tDr851kaUXRlyuRdKaTfahLRCUtVJBvKZHtuECKSbegDgJHnPR3lv2POKUJBxN54FS7GKdhSvqbV5wNHKKaPqXR7D1/gphF9LwPdG7hddSO5eQaIsokrHMbZ/1/RfyugeEZowvo= X-Forefront-PRVS: 02801ACE41 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR04MB2227; 23:QDfFzPgCH1E3NpdDGIjHDoeI71xuq0gyerkr/pWWb?= =?us-ascii?Q?qfz+GmN+njjjD2w/CPtHQvpFYM0ZWiu6FvbnpgmeENhAcfUkBPt8g5PCz1sT?= =?us-ascii?Q?u+Nm5eNYNNI9CHalazvbW1c1qFoHSRQkY6bLr62kokFlt7I24vWcHxNACgIZ?= =?us-ascii?Q?w/+Y6qn0pFLQLn7YvdTcA1Q0V7rzs2LZyPP1uA8eSO3BxSYyo8Q2IQI5F+bn?= =?us-ascii?Q?/BF51OLSb3H9jwRm3gJ9EysZ/LrVKtGLC9D9ffuXR4/BgDg5aSep/pEHYuad?= =?us-ascii?Q?HvEqpv6N4CmgRSH6I9QzGkc+h8oe1028KRYKjNaMRcfsRXxGGYIwGsjVbiwL?= =?us-ascii?Q?XsEUY78th6o0EPcXVEmhtuG/akGCGyE2CccHOcdSEExHMRFzH8unQ5CGypTg?= =?us-ascii?Q?FkT8ElfOXwpw4S9gOXlCwYMhqN3VvpoI8vpb5CpiolC1xWe8/cg4kb2Qh7FR?= =?us-ascii?Q?wuzaw1GTaUT0yQODnRGb9SVlAZBw4LFlsGs4/WcwrArB6VI/XjJjuDmVAL1b?= =?us-ascii?Q?dakrDafhZUDBtFQ6QOyGVEt3suaj+MD9N+zWRZnYsJ1HMRHH8HED3GD+qWr6?= =?us-ascii?Q?CmpNOgUHhTW7XRffkj72IgRu07LRViGsJPG9Hqg8A83GFE8OAklTlYOqo9kB?= =?us-ascii?Q?ih04arenykK+oEI8ayT2EmFRatoROCt15O43DyMJfnP0a+DZhDu9f2fKGy5+?= =?us-ascii?Q?8iPr6K8IY+8brD4WlPIJAHy97/xbczjcDjuu5T3GgSF9oyqbLIVCVT5RvYzE?= =?us-ascii?Q?yrOWkMpEmC7jIPs+bRktS4PQiSNo0llA97eKK9Qr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agnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR04MB2227; 7:kajZIqGxu8MHPHBKxPqUuX7kV9Bf0maT6/DzBECqlOwroYHAVii6mtZ4hzYcaZZteeBsE9yrXyHhs2/FNzxCwu/z2lo4qxWaOJcwVC9mMvrGEUGCKqTohb15KnXxBoGou5Fr5l6iqbSDc88IiHCLI6Z/Zf4HSOnDqRjg4glXCsiMO5VoQQ0FcVT45rC/Yfqqu1G+IN722HGOlM3bcsRmeSLPGyJtu4DP8W3iLTDt7uUhf8uNvRUIUb2fbjtobaMCC3Th853WK9+MEBG2lV/Du6jZCpgvPb+0Dwe6kKiAD+m5c5RTmKUhR7JKZkHU/OjMnzoNQf0hqiFZ9ywgoYPYWQ==; 20:JT0lKiLXlnHvtJbO+73am15uJy3lX4uAiouPnKwG86X1pFFPeF042zVEQJFcMUgKh6+DOMp/wFRJzBXNT5dI0TDH50vpV//AhQ2VB4k+Mm07Nvi73d0O+QuhBhLMVLZMvwH+H3jSyvzGUNAy81RbCUKSWA1ZpE1/x8CzwLrsmTs= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2017 16:56:59.1027 (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: BN3PR04MB2227 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 64b584ba576a..b1b669f98ea0 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -308,6 +308,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); @@ -321,8 +322,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 d75de612845d..a761d275cb44 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.
This new callback function will be used in the next patch to show more information about SCSI requests. 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 | 6 +++++- include/linux/blk-mq.h | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-)