From patchwork Tue Apr 25 20:37:44 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: 9699719 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 B8CD0603F4 for ; Tue, 25 Apr 2017 20:38:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A869E2807B for ; Tue, 25 Apr 2017 20:38:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D50E2846B; Tue, 25 Apr 2017 20:38: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 B85D228471 for ; Tue, 25 Apr 2017 20:38:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1950077AbdDYUiC (ORCPT ); Tue, 25 Apr 2017 16:38:02 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:2814 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1950153AbdDYUh5 (ORCPT ); Tue, 25 Apr 2017 16:37:57 -0400 X-IronPort-AV: E=Sophos;i="5.37,251,1488816000"; d="scan'208";a="13099532" Received: from mail-co1nam03lp0021.outbound.protection.outlook.com (HELO NAM03-CO1-obe.outbound.protection.outlook.com) ([216.32.181.21]) by ob1.hgst.iphmx.com with ESMTP; 26 Apr 2017 04:37: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=CPMteKmfNU5xYMfa8h3UZ8Q9qgFJNjB8loL+xnt5Dp0=; b=Z9zgv09yweNyDuCey0/3kTaODjxbtbNhwRQMcoM0ULpa+/qxWgU+i9jqvb9pUPnd9UofLxxoHL8x+du4/tZouYQdwRP6UWaIymwkvsGhwATcZBBF3cPG8oNpaBXf24SZ9TNSEK0vzszVML3jJSk5ZYoqe1nvfnfEp5rzoq4nhng= Received: from CO2PR04CA0101.namprd04.prod.outlook.com (10.165.94.155) by CO1PR04MB409.namprd04.prod.outlook.com (10.141.74.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Tue, 25 Apr 2017 20:37:55 +0000 Received: from CO1NAM04FT053.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::200) by CO2PR04CA0101.outlook.office365.com (2603:10b6:104:6::27) 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; Tue, 25 Apr 2017 20:37:54 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; fb.com; dkim=none (message not signed) header.d=none;fb.com; 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 CO1NAM04FT053.mail.protection.outlook.com (10.152.91.79) 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; Tue, 25 Apr 2017 20:37:53 +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 45.1F.29323.F93BFF85; Tue, 25 Apr 2017 13:37:51 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Tue, 25 Apr 2017 13:37:48 -0700 X-AuditID: 0ac94369-548749800000728b-e4-58ffb39fb8ee Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id FA.2A.18148.C93BFF85; Tue, 25 Apr 2017 13:37:48 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche , Omar Sandoval , Hannes Reinecke Subject: [PATCH v5 09/10] blk-mq: Add blk_mq_ops.show_rq() Date: Tue, 25 Apr 2017 13:37:44 -0700 Message-ID: <20170425203745.19946-10-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170425203745.19946-1-bart.vanassche@sandisk.com> References: <20170425203745.19946-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRmVeSWpSXmKPExsXCddJ5ke78zf8jDE4/V7FYfbefzWLBm71s FntvaVscvneVxYHFY2LzO3aPy2dLPdZvucri8XmTXABLFJdNSmpOZllqkb5dAlfG+qsHWQrW 81V86/jD0sD4jruLkZNDQsBEYsnqtYxdjFwcQgJLmSQmXV3ABuFsY5TondjIBFP14tgDdojE ZkaJBQvaGUESbAJGEt/ez2QBsUUEFCR6fq8E62YWmMIoMe3cH7AiYQEriZ6PX8GKWARUJU5f bgKyOTh4BRwkHpxjhlggL3F2y04wmxMovOJKN9hiIQF7ia6du1hBZkoItLFKHFv7gA0kwSsg KHFy5hOwmcwCEhIHX7xghmhQlzi5ZD7TBEahWUjKZiEpW8DItIpRLDczpzg3PbXA0FSvODEv JbM4Wy85P3cTIySwM3cw3n3ifYhRgINRiYc3wON/hBBrYllxZe4hRgkOZiUR3otLgEK8KYmV ValF+fFFpTmpxYcYpTlYlMR5z8lMjRASSE8sSc1OTS1ILYLJMnFwSjUwzugO3HD0rXKseeSn +yLhP+tN3ok9XrclVu2RgNgumxvGz1kulfncmWpyTvbVw2+s7HtXZsnorraccXL98clCS+Xn Hc8zE/jZVJKjznViv+xc/e8FSXt8Leb92bPtrLDHUkOH5bufcqh0TY6Lr/aTDvH02BCkmci7 K7B3wf1p/789++pRU3g8S4mlOCPRUIu5qDgRADUQbrNoAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKJMWRmVeSWpSXmKPExsXCtZEjRXfO5v8RBj8X6FusvtvPZnHwZxuj xYI3e9ks9t7Stjh87yqLA6vHxOZ37B6Xz5Z6TFtznslj/ZarLB6fN8kFsEZx2aSk5mSWpRbp 2yVwZay/epClYD1fxbeOPywNjO+4uxg5OSQETCReHHvA3sXIxSEksJFR4tvSFewgCTYBI4lv 72eygNgiAgoSPb9XsoEUMQtMYZT4sncTG0hCWMBKoufjV7AiFgFVidOXm8BsXgEHiUeTT7FC bJCXOLtlJzOIzQkUX3GlmwnEFhKwl+jauYt1AiP3AkaGVYxiuZk5xbnpmQWGRnrFiXkpmcXZ esn5uZsYwQHBGbWD8fpE80OMTBycUg2MB5T5Bf5UBlXdfJXY+/7ojd3srLcDfs1Tsa/6EbXf u9SMocJKTf4Hh3Ls9isvlhRNe+ejtcTnjfBJh4Prc/5d0v0W2MBnWq3CYGfXuueYarHoNafL c9wN2v9Pj/0aVlVZmyE2W336wZ7tYa2Jfs6rm4wjju+30JnxoMPO1PSCsOid/pjsU8+VWIoz Eg21mIuKEwGXCIb6uAEAAA== 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)(39840400002)(39850400002)(39400400002)(39860400002)(39410400002)(39450400003)(2980300002)(438002)(189002)(199003)(9170700003)(33646002)(5003940100001)(47776003)(4326008)(38730400002)(36756003)(53936002)(189998001)(76176999)(54906002)(110136004)(50986999)(50466002)(356003)(48376002)(77096006)(8936002)(8676002)(81166006)(50226002)(86362001)(6916009)(5660300001)(6666003)(2906002)(106466001)(2950100002)(305945005)(1076002); DIR:OUT; SFP:1102; SCL:1; SRVR:CO1PR04MB409; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT053; 1:pgUjBwJOl8ODa8bXxzTaF7K48cS4bqlseqen7gf6cQS129CE1bb+nXXYdaVAyuHb3C1FnMdjP9d6r8Jnufxm8tdWjSWBGV2tm1PKrT7JgZw0cItpvJVZY34Tp4vZY1rRT1ShfWCz0wJeA+7AYhHWqdNOhlY/XJHMaw7pFVkb97DsMcOIM/pGhjThOTMEOtSLdqjdhj1eDM5oLnMbhjX9xOeunLW56JmXmLokTi4uL9nSe1Xi5+7Fc+8IQONIQv9H36QNOdqc5pffU6RLsI+LEPIMfpXsNhFe/v06tIJQsm2KfnkebJ6r8RdbjfSmRSEDJ4mFFBXNQ3PGEdTs44BtXofuGY7FZJyJ2tfs5S/Mm0D2CD3s/tpvZbsl/w3D2lGBd0MTC6Ew1PKlu7OaUwyu6YiYO4+xku1VcxHrAPwVftBzJaBwmNqmt2ZHUQCzEkSfF6RU76Zoa06omDth5gzCTGiqwnHXcoR1QrwSstjxr4SjEzM8BpAix+TRTEoPJiGozNT1AmYB5Lfseu1m9RAhWZ5FWy2EE5bupZOhU9OcAig= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1528051f-210b-44db-e823-08d48c1af2e0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR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Qsz1LeLOGh8hSRtsbwtza+0crwV7P+Dup/V40UIfFbx8lh/WnXmJxD+ZulwKnOxRakbJbUyyxa2bD16OP+MCIcHpPd4c1IppRfQPnxppCW8mLN7Ck/vYi+captATNs+iHTSKAFegFail6CertNgCPjqWe7njclyxKS8PuWplG9Gm3av/lNEHC8RrKqHkgzvNhpB7kx8UjAhodJnzLrX9qKLVAQRr8VVXtA5MvDRzsrhfSLrdAM8s WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB409; 20:JcXVJxNLt27Pk88ozsudevk6mA0g/Dn6jgHjdtFttHbeYzeXZv9FplNK0LsDGvtni1x+jeT4P/Bf0VPdbZEKmRsOXy8XEr2z7Z2xORbmb4AhOoZHBYKKj5x8591BbcYeSMb+CmhmIskgPZFwLjXsHw1kHQwXB1kGbbBY23JTKhb/w9pcbA3rqu00BQGNGb4hjvUrdHwLw3wX7m7Pf6fBIe3oDwW3pfPFo3XQz5BXEmVSPKB176sDxE0Z+7ITcKfdsQbFSEoRZCTRQHi5menwhHwh+gsxwiNXrrCgdFlWIa/7k6qcamny9w2qQOjh0cJrhEpcKVaDUDuw8wLeGf553gnlAlt1hChJmw+cnSDvLldEiTMM66DcqmJQLE/4ynsGeHCa94NfFMCoWmqpXvPItHqnZJzHe5dMZAd4XjkFeS6XekBOM9ESaynr8Fy4ODlu8JkDbVoXzA54BWbSJHXpVY6JdwLAF6Ektf9CNw7dckcd7/ANB0W8HAc9xijFNM3h 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)(13018025)(13016025)(8121501046)(5005006)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:CO1PR04MB409; BCL:0; PCL:0; RULEID:; SRVR:CO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CCkMlFn55cDjdGeyz2UY5pRH3pMA6bx4hwwsr8?= =?us-ascii?Q?RHlOOMoUOmSdnpCj5EHc4l720Wec2XN1Ra62ZsD2V+nXZ2PpPJM1MkLNQ9iv?= =?us-ascii?Q?s34HWA/pX/Mq2smyBMp65gL1wWSlk+r4lUU3eY+iU5F1PlOTfG0cnUcHUcu5?= =?us-ascii?Q?0Kcyst30JgPjSl9nqgynLug1jFV5XSlf4tuL2mgacbpB8F4YfXjFfu3QfTr7?= =?us-ascii?Q?cnH7g4hWIy26OLBTaUJCVJh15pc1RB4ucpqffLYO614vES/fviVAun6Mq7ti?= =?us-ascii?Q?judz5xy9S+4t1eA1GvGOqOetk+M5Vti9aCS9+/fj4qwblo5gpFlL7Fn0ywnn?= =?us-ascii?Q?XZGPE78XwWvNWkRJAkE+wrgBGvA+rymYEujtRCQ3EEsgHaAYKCUfKnrKVO+d?= =?us-ascii?Q?mIv6aetTNxmJs2jwEhhBzoQQKtuBkBGhlZ3LQEmTqC+frePorHqtUlRmlevE?= =?us-ascii?Q?1chvG6aMi6bZUpPUHFbJd5qAc21MaiSXNbYc4mwUwVEkzE8QxycKLwagvhD9?= =?us-ascii?Q?pE6knpHXyY93b967hYu+FrGMu295yUFtbCYReeHAk921qm2jRamSx0uAJre2?= =?us-ascii?Q?w7VzNoVF75+AUl9Pe3yOzSOppcS7NxvD7E05Q5gSWqPlD7eIOvTupMgcINh9?= =?us-ascii?Q?XEVGzC9rlwpsPDjyYx0A8xfpCbdle2cwOzKGbknuzTPc4xNTavdyQ0fpD26z?= =?us-ascii?Q?XmIsjO5PeRUFtVostPUFagTQOTencPREOUVurDAOWFidtojDm7l+KYWZI937?= =?us-ascii?Q?RqKnYnaM/7BM35dkEeg4CPPxUHm8Eo5qZKSOKYxtshQfPlaP8J6T+0OJ1npJ?= =?us-ascii?Q?eWstZZtCPcqtn/LkWPQC65g1NEAjCivbrixH87aw/qIdOvSmANhtHtXCEIYk?= =?us-ascii?Q?r8ssbTGFYgphP1tOSCUTyo4hmS9lOjubyub66+phgsMTvHg/l/49wuMyDtaE?= =?us-ascii?Q?dC7zeRkcpGp4ZB+cMnuhpEQqMH35diTOBrAV03d1eF9A=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB409; 6:f/9O0C9HTBUHRzFNuR3ZpVRCsTZVcnGCwMHYRb1Kclo1cPvy8PETeGBBTLfnZAy59uK4pwdThABripti/5LWS/7DEMd+TdZsk/ca8Lyez35ahTxUkniJdFpxKyiJ8IC8iN7fixBvYTe3IPJLSRdb6jFpopwiR2lYSJ/jIwprydEodtnKGWr+2ka/Ps/0k0hkO3cdWOY9ojJglfACLOE1rR6IGeujse8gPZxSYENiAZnUx73YzGNJrnH3HgIh/OJE8UYoY178wXXwf/2LQaLMcwY/8ovnig83hCtiTicNq0RsMwO8GFlifUvMhTZgfX0vMmDN0SeNrDPtJbInkApQBnsibK2YjfwBq+kYV4cC4jBiW+wlTkdqENL4+ts+xTHHmQB+EzJnnNRdBDa/8pLJDaPDVRGD6ed/mFKCY8mLQCy+4LeDYA0GGA0ohP7ZGURpkcTh/XWr4FGqfLkS6M79bI7YNd5TxYZvjM/7e1QlGYo/zZCUEKvsz4bwfaGs2odwHfVTHzKyYUfd7ZP2XI81gwIFI74ec7WsNgOg9zaZfIY=; 5:wwA5AZZ2lxX1PL0Xt1DEDF6impbAtYKZcjzkBMz1HWACTxii4ilei8hd1IDrGd+XTlcmLnijjnSX69y67mn3yQPIc8K+3uPPdj6tOnfbcsae6FuVOZy8XHwz3Fa7iC6FEKp2EafOR3YvgNxV4ZF1rQ==; 24:hBugBys83saqUA+t3+g6hFJgwlGMLiPobvnsZ85w6OgfJVVju6MqYsFaJh1EVuTozkKYG7ucAE0Fb/YWCQ1FKJepi7/8oi+Gf1Vz9LhXVWg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB409; 7:aK05UUfHbq7s5fAr+2wvFlL2p39EKtbQ8LSGeHyku3VhNvTMq+TQUNC2VgI2Vd9JuABp9Q391eSgty+4RwithkbXIT994opfh8fZ8/SN1zsVwxkTHlDAFHO/vZRJuy7cFn8HMbzRsvDGm/GkUWsYTQqEm6ZSMCp5a5MrbWJ/+oM3Aa03UcHsVHKWFdlQ9zW+ApbVTPZ3w6HBgWEg99ZPW9ot2Dia6f7F78gSmGX7E5bANdRPzzUwp1P3cQp7Yv1ApcCgCU2Af6Q+A9/Ar2ItRNK5mxI8JezEbdzDDijzZHEewPv7mbv8NsyYqrbl1nP9haYeOAXsxDfvVK8zFbxhkw==; 20:tlC5yKXyG0wbSvKgulNysGkQRrDYnA1eqnl1ULFu1fLt9+H/WGKbRT15MpYOypMklfx0AhDW3zKijOHQxaScdqydGVVeQ8Rmg3GQyp9ylqY03YlbDcupk5Z2AAAxH06fQMEyGM3J4+R22BL0Nnei/e6Qn/Ks0HeoclG/dTYZICI= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2017 20:37:53.5290 (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: CO1PR04MB409 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 Reviewed-by: Omar Sandoval --- block/blk-mq-debugfs.c | 6 +++++- include/linux/blk-mq.h | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index ac39093c4ef7..bcd2a7d4a3a5 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..32bd8eb5ba67 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -142,6 +142,14 @@ struct blk_mq_ops { reinit_request_fn *reinit_request; map_queues_fn *map_queues; + +#ifdef CONFIG_BLK_DEBUG_FS + /* + * Used by the debugfs implementation to show driver-specific + * information about a request. + */ + void (*show_rq)(struct seq_file *m, struct request *rq); +#endif }; enum {