From patchwork Tue Apr 18 23:29:48 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: 9686671 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 B0B1E602C9 for ; Tue, 18 Apr 2017 23:30:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0A3320265 for ; Tue, 18 Apr 2017 23:30:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9366F28236; Tue, 18 Apr 2017 23:30:26 +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 F3FF620265 for ; Tue, 18 Apr 2017 23:30:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932595AbdDRXaZ (ORCPT ); Tue, 18 Apr 2017 19:30:25 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:43884 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758092AbdDRXaR (ORCPT ); Tue, 18 Apr 2017 19:30:17 -0400 X-IronPort-AV: E=Sophos;i="5.37,219,1488816000"; d="scan'208";a="12079743" Received: from mail-sn1nam02lp0017.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) ([216.32.180.17]) by ob1.hgst.iphmx.com with ESMTP; 19 Apr 2017 07:30:01 +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=lNVEscrZjUOOGgpxiL+ub8jX15DGN3hAWk+4HmyoDmdmQnxFaeOHw8Lb3fxqu7jQkjmeEHId6CLYrQszL5I3vBkbASRH7mDoWWWBOhl9ARHNadAN5ODfvuDzy9Pvlv8KbXohLu+bahjmSef59hjQpntr/nrlSZQEbMA1FCjC1G4= Received: from BN6PR04CA0016.namprd04.prod.outlook.com (10.172.194.26) by BY2PR04MB848.namprd04.prod.outlook.com (10.242.39.13) 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:59 +0000 Received: from CO1NAM04FT021.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::203) by BN6PR04CA0016.outlook.office365.com (2603:10b6:404:cb::26) 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:58 +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 CO1NAM04FT021.mail.protection.outlook.com (10.152.90.141) 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:58 +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 E0.8F.19026.171A6F85; Tue, 18 Apr 2017 16:29:53 -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-b7-58f6a171f016 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id CC.84.18148.F61A6F85; Tue, 18 Apr 2017 16:29:51 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche , Omar Sandoval , Hannes Reinecke Subject: [PATCH v3 7/8] blk-mq: Add blk_mq_ops.show_rq() Date: Tue, 18 Apr 2017 16:29:48 -0700 Message-ID: <20170418232949.5228-8-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+NgFrrGLMWRmVeSWpSXmKPExsXCddJ5kW7hwm8RBjO3CFisvtvPZrHgzV42 i723tC0O37vK4sDiMbH5HbvH5bOlHuu3XGXx+LxJLoAlissmJTUnsyy1SN8ugSvj0qke9oJG /orZLz4xNzCu5Oli5OSQEDCRuLXsJnMXIxeHkMBSJomFq56xQzg7GCX2HXjICFN19N0mqMRG RokXT2+xgSTYBIwkvr2fyQJiiwgoSPT8XskGUsQsMIVRYtq5P2DdwgIWEu9+dYIVsQioSizs vs4OYvMK2ElcWjKLBWKDvMTZLTuZQWxOAXuJzdfPgvUKAdV0PjnBCDJUQqCNVWLL6tdQzYIS J2c+AWtmFpCQOPjiBTNEg7rEySXzmSYwCs1CUjYLSdkCRqZVjGK5mTnFuempBYYmesWJeSmZ xdl6yfm5mxghoV24g/H1be9DjAIcjEo8vAbi3yKEWBPLiitzDzFKcDArifCebwIK8aYkVlal FuXHF5XmpBYfYpTmYFES582SnRohJJCeWJKanZpakFoEk2Xi4JRqYHSb5/T+fa+8iZOOUu2W A6c9/yVXOj19MyX+zqZvOxYH9te8TWDnmjyf49gR8e7+w7qzP7RbXHx9rsa29lSw+N9mJ9ed DNyLTvkUx3QYSuy0K5DlanL9If9J8p0E3yfdTxPDA9mVhcu3CN/88vBM9KxDfJdiXfafuGfy afptIa3rDBZhgVZ/ZymxFGckGmoxFxUnAgCclctWaQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKJMWRmVeSWpSXmKPExsXCtZGTTTd/4bcIg/tfDCxW3+1nszj4s43R YsGbvWwWe29pWxy+d5XFgdVjYvM7do/LZ0s9pq05z+SxfstVFo/Pm+QCWKO4bFJSczLLUov0 7RK4Mi6d6mEvaOSvmP3iE3MD40qeLkZODgkBE4mj7zaxdzFycQgJrGeU+HxgAiNIgk3ASOLb +5ksILaIgIJEz++VbCBFzAJTGCW+7N3EBpIQFrCQePerE6yIRUBVYmH3dXYQm1fATmLBj59M EBvkJc5u2ckMYnMK2Etsvn4WbIEQUE3nkxOMExi5FzAyrGIUy83MKc5NzywwNNIrTsxLySzO 1kvOz93ECAmIqB2M1yeaH2Jk4uCUamC03Hv23+r386a/EZ7km1Id0/ZIIiOAUbDo6XrBlMaL 8w9mFpaJXrrhd+HdzJLW59O9LNPsg96kni7YKLNk3R/ZaXNcHljPXP/dO7fqrLvwunytpJ+7 5I/piBi801s8f1mk4lr97ifa+bfe9LVU7s4LWh19Yf/DQKbFRt1bvhQvr57x2Otis0q+Ektx RqKhFnNRcSIAfEO4vrgBAAA= 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)(39450400003)(39860400002)(39410400002)(39400400002)(2980300002)(438002)(199003)(189002)(9170700003)(6666003)(54906002)(81166006)(8936002)(50466002)(77096006)(50986999)(76176999)(8676002)(305945005)(86362001)(189998001)(356003)(2950100002)(47776003)(6916009)(110136004)(38730400002)(50226002)(33646002)(106466001)(5003940100001)(36756003)(5660300001)(53936002)(48376002)(1076002)(2906002)(4326008); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR04MB848; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT021; 1:rpDT98qqmFkhucQhOW0ZdeGDJoTOFLYYeL5jqTOyqIoiSuIEpl6neEV2QAOtfp0lN6g/eZLfM4uu4Ci4/Sdn5QNGpq3dCPt2khzFzfPH0Cw3bDrtc+1DqYJdvEqocpb+i09fwb4iChrKlfd5arP0WGW488TydDh+2g0pv5NkXbRnsND0f+OArQXEtbRmAG9JRpKrOPLKQvO+EAkIe7QHC9g0epjWpBHksIm1eb2aLeW7VCn46lq0RuaRb0At9wlM154h6+n17I+6/ecjy3WMZtzC286431tnWuZXdIuhbA9Oh8T9jM5fs52a6kMrxFn6UMw0Eyd6GR2umR8czlF/P9yvMC9sWd9QZ8RFcE1nurB6KN+nYKPjFjFcBgCj0f9M/2Ryt/YeH6MuRmiIcv+tXj7thxrQuM+SbeGmaJi6c6vyWarHRZdTdbZy3BmHGBL7V5DRCL6Eic7UtztRII6jj82wALBHw0O5iMPyJQWHqyD+0w3pziT1RuSATIcrF0vUbN9YUIn9Vg5aeODtsIHndlQxC1BJBHS87lN1SyRwwts= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b4037f9d-af14-436b-7967-08d486b2d43e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BY2PR04MB848; X-Microsoft-Exchange-Diag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5gYrXbVKpAocJIpy95Ur5aw9S99+0cec/+BSy8QGt4e6sCXndn0TLuHKbYvTJ3Ks6zm2vCgs8VBWlNcEOyrcW3oFLctr4Lxt1N4/bMeUZ3TJ9CSb78/So3YT8Z4BEo8Cka2OFtLreR/D6IGjR4GXbmIaCVGJTDROfOxmf4XR2i5Pf0LzTrpOJBpodvRhICKgFDhkoi5kuX12vP19PwIhE02oGig4dTFxDMTE/HYYz17cCTZwZD/xba6Zc/2SR8woXXHLU9eAE2NI4i/eh37qhdDvIgRAaA6b0= WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB848; 20:7TutL0sKvoNnDfhAry1AMNdiE0UIIAV5SaLDm+V5TLAwE65Hr+RbwLVNIxIF5CcCndI4nxhu7pg6uMWLw7czKw8qfbrm/cAsQdOXLpmfpjTFrxq/ebPlqLpkkYJhjDWnzp4b7Oi533V6XIyrI+2VRdqJz7OVSlvfzFvOF1KdxiMhhYrWn+vR+6itcFCMrU0yCYJhqrx5FPDNBrhqAB8UgCfIaIeohxs2zIH5R8C8OiAG+eW3GNz2y8mxnHPOZevMGn67Vj904JNC+MXmLcvM5MjCNNx/GxvyBDY/sapdQ2llYbxBveD+86h5cYo2wXDgprozaxrC9BJHBa9W7k6tpJga3eBW7oRqzAg2LD6gxJqqTj3aeK1mrkwBsK1r0z2D50rIOHJhtsupax8uzGmBjXYtTVgQ14LtbdzcX0HxjihYwDHS0mtjdUQ/+m2sM4XTdv8pXwuJeTOmRtZc5Kqu54/f4SXHoExW+J2+8FOaJ0ot5a/ibugKYW2rBUh4kkzr 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)(8121501046)(5005006)(13016025)(13018025)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BY2PR04MB848; BCL:0; PCL:0; RULEID:; SRVR:BY2PR04MB848; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB848; 4:Knk6iTAazilioIZ5NvOiM5Z8tWwmtNvaZMXOKzVwtyHXZqh/zYnZtXGrGh0VIXb0linboXZR2nbrpBx+RgFJnylG2qujHl9pe7yb43jbaHAlrvSwr3+4MmkYxYVlBjvxmE0sbBnCCRVjiSakeumKXcvemNgg+hamElvyHUvz/eGWr0O1WIgl2suLpYVlOKPB4eTHD6iZ1wKpM0qMb2vvV10qwv/AkVJatj6AQmX2TzT+WN9TEoEhCSdZeMKIvIoEUaquLDDUxbLixgInrTQX6MUTbQuHWgDYIpkUMH4+zMO8nxOllUy6o86iTr78cIIsRRo6chRwW2AFXzBIp4TGptBQjqVy0eJuZ0ywXtIHvsmuUS1Wm5iZgauHx9lQWJJ7Ud5olkfp/6MgUWlMUv8O+ozYa4EThjHiQVmlLvYobqCmKChd3w6qzz+hcBXltDIPVayQAfsvjBRlCMwRgvsXypNILkJGE7EqcsLaQ8/+zBvmEzNkrL2V0v5SISO+3YJnN13Qq98zHhtJh/I6wU5/cCI2Tr48kx/eyQL73OPYBIP2i5dWRPosaOsGuQdu0z7kKmzXX+nnZoQRatpjHWtFoM1nLPYoMdIFEs7xn+oxzdCmvg82L4KJbC62rYq0+8efxaxQymQgPNb/nlR1Q1LlNUL44W/XbHdAX9CA3FqEmc8HcVPA5ZYYjfZM3Jz48GJVYqbgs9i/1DUsLcmKH2AAF5ebGYBSgFo/HbmxCyWczdynUeZbiPDt04A0yQI/QCZSPDLUdiPWk5dTKAQVGLLAXAgCjunq3pp6G2l6P7r1qJrqnUFSz2Y16xRWv7QIBQGrRLc99uWVNNH6EJ71aC6Nr4OQAHOKnqZGYRTc441CetY= X-Forefront-PRVS: 028166BF91 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR04MB848; 23:/JTydAKQHiF0MXsJKudyljnI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gMpT0Y1vio0WoTpgAHnV9QO9HRWAoqL8zMFyRT26Lf?= =?us-ascii?Q?9lhAjZ5gt8GGlsFtCwkbJE5aB4zCGRxxc4WF/d1zFaEfiMG7PorUv7odrReE?= =?us-ascii?Q?E=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB848; 6:Z2B8dgwwdzcFwRMEo5DVCYmUnVOt6J7PH1edMHaBvuWXj90xAv6h9aHyDcHgR5PNFCGT7McOwR7XEgJgy6sD/oyQR9myrmoX9aNyo1mFXEpgs9ePV1KFgOraSS8pmm3er++7jd+pKBWvA4tXeu6CF+IlIVC8TLMt+YT6zFqbJZCgAtdmgk0C8/1pV+85qMoewC/7Yv0xRhOQsTGrQNb1snzEn3W36AgkDeuDh0auwCSfeJjHyylGxHObYYvzH4U8WO8zVC/GVXTODDuCp+sQdXSVlQ/1C8nyxveeYpOjaAEDpiYh+Sg+txAWwaNAUdq11NDj1G6pA+g5TrGDpvDW4yJvfr2ZJdhA+0tRQjdre57r2QHn4urDf09BjtxHjgH2gpeo+SpUKhjGmCg0YtNUViknbSWbNEP9vc70+miT9f0DKPofmvhlKO6LldChhfbpc40hgNwRLYwtCe5ttJBjFXHxdyNOCmGzVO1Wm1xmSbw=; 5:ALbLzfxW37z1XZcvgwgdnYFE6ezgoLYrgkNvXZNfLAdT5nUobWoS54BGNx0CKYqb22+jqAaiIhWpHCjfcQjNZ+xXMUsUYI1o6pd01/ImtOaX9s4n2GJ48Ve+DRgT/LpuIeS2/lbW9/cLtp1ashl50A==; 24:eohpAuxFrK8sHplaosQjRxr2JyCMJzNCshdZPgAos2cUP6kW+rbY9n54oIyuuekixWVlNWziyDiCilgxBpv/E30Kaapwa8iJhchlWBWrCfg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB848; 7:9EPoKL1de9f3L6Y4squ8flIQXo/Hysu6hwGaM7qKq437TYxmcfvwVUgW72KDzv+Kh4sTEQH5w719UGy4ZeSj0x1Y8Rc3uAKmovVSTgcw/Fxe11/Cr8fBqAWWUSCuRPfNDv6QX9lC1MEjr9tcB1cjLKfId/G94hdK/6YCzH+l9MGhi9mDUKPkMIxSo3BD5Lj6km0NBgfFLx/8aI+AAXAJt7mYEtvCVfwiTgIph0a8AatDT06d8VT82Xs/Pl8wGXlDlu1bBva6b7rfe5wBJRoX1rCpYlLAN0QDCZmZrAEWH3+SiaiEAlMO+wUa1djOdI96aQZ+4r91nRujBZUcn5vyZQ==; 20:HwR1GyrhYriAFyKVxo5XyEr+9QN6csBgYMF49tTxF9IR6XKvgajwVppvBFS1XXFls1fy3Inyrp3aQf+JUl5mlmnmAjWedvQFH6qSvLiBtQLgGsBxlZd3PZ1BNwBSf4sGxZ5XGRgoHeLnBTDxI9BREwRni3t5plMOYrd8Vfeywo0= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2017 23:29:58.3465 (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: BY2PR04MB848 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 | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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.