Message ID | 20170426204757.18910-10-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 4221C6032C for <patchwork-linux-block@patchwork.kernel.org>; Wed, 26 Apr 2017 20:48:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3185728619 for <patchwork-linux-block@patchwork.kernel.org>; Wed, 26 Apr 2017 20:48:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2642228638; Wed, 26 Apr 2017 20:48:18 +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 B50C428619 for <patchwork-linux-block@patchwork.kernel.org>; Wed, 26 Apr 2017 20:48:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937681AbdDZUsR (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Wed, 26 Apr 2017 16:48:17 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:4126 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937604AbdDZUsN (ORCPT <rfc822;linux-block@vger.kernel.org>); Wed, 26 Apr 2017 16:48:13 -0400 X-IronPort-AV: E=Sophos;i="5.37,255,1488816000"; d="scan'208";a="13382772" Received: from mail-bn3nam01lp0175.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.175]) by ob1.hgst.iphmx.com with ESMTP; 27 Apr 2017 04:48:11 +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=MTiR3IN5wdHEIR+ymrQ8htxvNbEJIHvWkJ6IzWVhDMw=; b=KPmRtCr4U0LWyYjKPXv2y3uDMqC44txf1HVklsrtNBpmZi5Uc2ephEHeI47F+U4L7tgKt4621k4tgNINriS5+0WOF/wS9KJWedQPIg1581bbi49kQGF5Jp/LCjPjtfrh7yUQzrXF035wJ6DJs5HXKQ2XhPDrnYeSJtLltf6OLK4= Received: from CY1PR04CA0025.namprd04.prod.outlook.com (10.166.187.35) by BN1PR04MB405.namprd04.prod.outlook.com (10.141.60.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Wed, 26 Apr 2017 20:48:08 +0000 Received: from SN1NAM04FT012.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::201) by CY1PR04CA0025.outlook.office365.com (2a01:111:e400:c5a5::35) 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; Wed, 26 Apr 2017 20:48:08 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) 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.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 SN1NAM04FT012.mail.protection.outlook.com (10.152.88.109) 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; Wed, 26 Apr 2017 20:48:08 +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 A5.23.29323.58701095; Wed, 26 Apr 2017 13:48:05 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Wed, 26 Apr 2017 13:48:01 -0700 X-AuditID: 0ac94369-548749800000728b-62-59010785bee1 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 76.F9.11415.18701095; Wed, 26 Apr 2017 13:48:01 -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>, Hannes Reinecke <hare@suse.com> Subject: [PATCH v6 09/10] blk-mq: Add blk_mq_ops.show_rq() Date: Wed, 26 Apr 2017 13:47:56 -0700 Message-ID: <20170426204757.18910-10-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170426204757.18910-1-bart.vanassche@sandisk.com> References: <20170426204757.18910-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOLMWRmVeSWpSXmKPExsXCddJ5kW4rO2OkwY+5phar7/azWSx4s5fN Yu8tbQdmj8tnSz3Wb7nK4vF5k1wAcxSXTUpqTmZZapG+XQJXxuOZv1gKdvBVHPh4kaWB8Tt3 FyMHh4SAicSjSfZdjFwcQgJLmSS2bm9lhHC2MUpM+P6fpYuRE6zo/YmT7CC2kMBGRokXbfEg NpuAkcS39zPBakQEFCR6fq9kA7GZBYokrh1vYwaxhQWsJE7Pe8IEYrMIqEq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AEAAA== 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.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39450400003)(39850400002)(39840400002)(39860400002)(39410400002)(39400400002)(2980300002)(438002)(199003)(189002)(9170700003)(50226002)(4326008)(5003940100001)(47776003)(110136004)(6916009)(36756003)(356003)(189998001)(1076002)(38730400002)(6666003)(2950100002)(2906002)(106466001)(76176999)(86362001)(77096006)(5660300001)(50986999)(305945005)(53936002)(33646002)(81166006)(54906002)(50466002)(8936002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR04MB405; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT012; 1:hnvpDz5GlFCtgIpQM6cwValZ1WQkdM4C6t9pvhW65XaPvZZFMA93LkI3UofvwzaEZJwHjxE691kKih+JVrpweySQKOn2T8rIXB+95f7fqN6ttrjOZRjX872470sxe5Y1f/fRenzPMoiV4ER3R/sUP2be6RIBS0zlSGbK87afT/JgTKogaiDFqW0e4klB05vafHCpLbdNY5fdiZLXBeiNj1YLyXB8uuvvMCbYia/RSOLKASrw43ZTD3+koYemz170pPld1QPbd40LgJWikqcCe3josJ7wsqEKaWUa5OhP1kqRCIGpTH02OPu6IN6/GSC4I5chBzS+nZpvo+CwyHotth7nGehcKcFTofki+76dEMBII2yFPGPdwo3F9jO19p+shqeHNDQJqduMWaxpv9Afj+4v+Amsjcmyz/3AHtNBbC2g2/J7ODtK8D3bbZVD1Q4f8Cn1wPfcn/Y5gTAtOmjNwkZlEsJTOVYn2iOYiDrk9ggmCpQluIQQ/oSbSuw4na7EU3ZNpr6tqdIElbfvb0cGTkS8+G7uOyXsdbvAaf7C1MM= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5dc7d737-f9af-4083-35c9-08d48ce58bbd X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BN1PR04MB405; X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB405; 3:LklM9DmsepEXrJDy45XE1mYaW2GaE6q6GsrlIXLxUrRGw8hvfQqj1iWpXeKF4vt5BL5Jy3uXOrhppWTjcIWUa0FptykUwQgnEiBPkfy+iA1gfEo18q43fJU1dGAZu6wyOcA+DdvAoYAzN4tIQ15ONoWl7vBeiFsMvRtSNvK0BdhbOjxcEoy5AoxLSPfp9f2VG9T83cD3GPMBNdUtuc59CvYpNCWlmXbsOeA0reH8yjZdMGTtkmeCr/+dvzdXOoueZBSb2V/E98Gkd7nEjtb02PS7zsqa4tn/JETri2v0YcouZhiWWzJOC1QpzcQpA9LIbPTEb+zeCBcAsH2shGvuFrEmDnlpac5TEJI+w4U2GrldXzcISwWb7z1LLTjFgPKxvipb73qQTv9SJMfsL7djRkwM6XQAfNmyULTjw8gxn5lri5PeOLjAdB5s/Kx2FCbOfbAEZwkTQ/zzcyU0YAu+G5vC8zRwf3+l49OZER4EfCmZBhfiyqJcHOmMfeZ/0Ydw X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB405; 25:NZDsKAZyI/ANPnr9dAClRhao8F8GpkX5lWODRDTqx8ZNU3cgLvCcsHX4XOEoU+3K9mhXAXuqfMl+iqX3pt8vZJs9jqMvoqe+l1ZT56XgFQN3hnhqwn93hWlT0IUkcPguMfCvwfZYa8NLoi7BlyHNtbSeJVPEgbJnw+HU8/9eXy6KIvmrlY3P+PsEcl0MYJ9MbuKVI2pdby08ICKW30rSX1Q6w8VPbewP1jdfX1EFlvYHKNn89siF4HbVfgk4A/DOhpg4KFe0uuvGDZy8b99xLDH92ddoqnxNvdiONLNSDK2KkjkJxsCGNm9neaY4G6sE9+YxGUa+0x0Gi7NYEKeVg36uMdw0k1wjN3ZKCtBCkiYOR1F6XRct15EgkZhqW8Z1FanbL7hk1b3aigjZMEKIJP1J36xdcyktNHvKk+8X/1/HY5xO47qizK8MBKGzjg8OVWKcsOOtoG41oIoMa82kyA==; 31:jbtkEWN1YbqmkC3dtrMf7s8vpoG5BHLCa6iqJJwg+SmeECjJzjbG91Lj8VXXSI3WSrSXS3Y7wG7bscpMZhf7lDkkg5HSGB5jx9ljLTc/MrHdSLiUlDpuLCTbWqZHKGXAU7jdlRJIvv3HL0FLZ0Vz9WsTj8vU5FFj6JGvE7OHfan8cBzf0Zq10gJSX430j07qlkEwIVwWYd46EtoKuGQOtX12u8h8mMGK6O+5aBn55Z4c4fU1BTb1ar7ocsRaNsgkwaOaIdQc3/474EB96RnN5g== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB405; 20:9EFsCKov0UwXlMAmKoyjkn3G079x2FYqwjDk5PDgKngQt3R34rmQwjI28ckSpHbN2Pxg0hHo4o7RlPxRpl9wmtroUZcx/fwyDAfBHRJLxr932AwisaIrHjUy0lE653tiwz6q3Udjznrjeogw6yzTQhkFbo1d0D6FknBndGALElxt3sasj1Jmk5+BRcqMCSpSDP0bkejET5i5Pt5+QRf0YxFJWr1R4TgLXatS4g5r6ZCwvIpsN/4X/dDS5DkB0RrZqAQmYlephSRhiz4dRRBgQ9ihsT0rU8mQVngHiljmTDPY6MJv+G7t8kPzjKzcZzgAPov4O73y/L+eQCr/bVENiVE6qAkzO758XRLSsU81ztlwq8d7VtjSAYs8rETAYAmW1cbKTd57pfJpyZ7fULyuyMMN4rDAqvmhkptJK8VUIinjdQGOCHgWyrZjtF/zrsFu6nUPLXaWfVxtBDo4DO0rAvG6NpbYVq4H97q+zS7UIwDQB3yohzr44LMfeb8gyEDH X-Microsoft-Antispam-PRVS: <BN1PR04MB4059C73D1AB8D84C10C89FA81110@BN1PR04MB405.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)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(20161123560025)(20161123555025)(20161123564025)(6072148); SRVR:BN1PR04MB405; BCL:0; PCL:0; RULEID:; SRVR:BN1PR04MB405; X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB405; 4:t+0UruKH4dGg3yHeM5ELZ4xnc7Mzt+/wBDzTX/ydPBo2TH81O4W4uTaDbahayi6ZFJhLn017Xs0thzSV0SbwhkvRsmY/qWWpeW1+t8OOGUS9AC5xFwb/6HakBqQCyVsKThreICyfjeCWvemULe8/9eW+xStx2f/877S2Pv0aAEGX6C+AcnTeNQ9xTwwoRTWCppY11ZUsju5qTLk3nk+ZNMxnF5mKIPQyga3/rirDiHFdqMyOxk4sbwTF3kVswNGkXlGQ1POJGe0vyZGCRch6R31lE6a1BCGrwR6xJil09EUuw/a0ItXWfZFmo/2GWXBltHGqJ4k9KpGkShCwwhPo4xlVDtk/fq8vfB7t/qA3SGQtGzXeQ4mxnCompesnOv6xnHoW4HufDKBEebA49i/amkr2yKPnmvy8WGBYeYMyXxQ88lzaffhrjPa6aXMVvwG2YZq1pjk+Vrvr/FbIVb0QsFp49e20GcJV2rFqpRKpXuKi1n9YMw2bK3ufbkPUDBkWKO3zRETEmAiXmxCvZGcDdrJ52VbW27PG4d37ZzLpzn2RJ55OCZcZRuYjx5V7wFv9zCu4EGsggU/FWZCKlsJn9ObNYWk4pkaERX4qR9fZGOzzOBPUExU7uj9KTqOJJvoSgSXKT11z6f1kcJqcJKNlZG4/K+OUfzndRUpbW0zU4WfZENB4UMJtM2iFc8XRz0IDJJQ0DlqRzR53jnzwCciGod2IhJB5SgLaFdvMb+ty6xltCwdf4csZ50IXpHOQFma3av17Qtw+HiOOzqo77APaLY0kQuibdVyG1wopX8BtVGOqbJBABhfnwRHKBUDmxLrr04h4cMxLBxr5mAZ1BDVfPh8JqkpFsL72TfCUqHdAIm0= X-Forefront-PRVS: 0289B6431E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR04MB405; 23:qye95O5q5hO5GGCWNrPoi4sWk5+6/XTf3efhuN1UBF?= =?us-ascii?Q?+V9WcnCwxJQaq56qYkRIXiEwuZp5uuluu4gCSkGMBo/8ZyHEwV/cwYrBJ+QZ?= =?us-ascii?Q?oEIvA5uYfJse7E7xyiDMnD8SA9JQaoDTKqrYp4czXpNZ/hGQCKQRa9DoH1Pg?= =?us-ascii?Q?UwRJkGMfcezwuZl9A/KnkFnuKMuldc8AbJJ9VbaG8I+iirmw63dGNLrPIzL5?= =?us-ascii?Q?q8AXtIroSfMF99Yfn4eyUJBYV4/yWvSQ5gPlbr2nn9dDH3JQ5pm4icgSHy37?= =?us-ascii?Q?bnYIKuXLm+80b9kkLsl3fcvOIoVw18X08ypClbnCS5KMqh8K+WWfs2LMmmce?= =?us-ascii?Q?UpNQ3Z0tSbgLjwzLZUTmUDGUHSce26zUpaQQew1iET4AS96Tpzwhp/bLoa2P?= =?us-ascii?Q?4sqPyDe1FnbV8tEuVXU7hDFWgvsWd/izvQ8VEl8mNhzOvN3cvTc6l4llGpMf?= =?us-ascii?Q?AJCGU4lIZSPJ88Z8ApW1AO+Q30HxWA31tO7r1MT4LqkzifIBwdAlx5PdDkh3?= =?us-ascii?Q?faz91roreT3/jXB628vg+DUwh1onqgaDraoX3mXhHN1goBcjUY2Rm5G4CAAI?= =?us-ascii?Q?pGQDmcV5FrNV/PSksKrrpZEQsMlf0Zd9joYm7v1k9mWPA3wlWo/B6Pt7JzJF?= =?us-ascii?Q?h48YlfM7cHcJ9Iru7mtISlwhqO/OuhAmo90rLaVTO5XNPaRKz1A+fM5PgnvP?= =?us-ascii?Q?CUm3HBdpLfXoybwAbeDXutHulOq0sXybtmjGLmgzblSUCxxd7MeHB7x8xul1?= =?us-ascii?Q?GYjll0nqKQMHxjJZqYM6cLsF/lonx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2L63MGwFOCtulecy7jubO16ueaC/26Hj2VLcrr+wtwhZzdrVSj2y/JX+2TBM6oQPSlGg0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB405; 7:sTt1wCc/6nv/+71tkeUUr70nmSpDfRnV4QEc4iOdcwDLYXpHX/LyNahHOOa5BGjWKBWI4n2ymqRf5GMGWH/POHWvQpb2y9GZ6bfyD3skyYZCgvM14cWJJVBQNZ/dbkWZE5hnMIZSQ66W99wRs1sKFxxlbUk3ms95EEkZj2/JXZEaiFk6d4S2UKwX2JSmWqzYfN+dlSvEyP9deYjP2z1dsQFaaTI6cYMVYt6dbY8NAde6rurL8m+kloIBGneUArQ2FbfNwwFU+uCQS3oVt09F7BsJlLEv2R8ABY896BTusyF+kNpmk8HPS1USThwzQTZrqxEGmY7GBdlZd5u5jqPFBw==; 20:pHFktS3K99BehgMPZreDYoQ2mrRs7G2GWDcD50arvjk2/nG/JqsB43CKN+xxH2/VNJFkqD8l29CVN8PyxT1pQyM1xPFZaSPUGc+4oS8eyXatUhzH9NX0Ymm99kM/rL+3IbbyglqGHsAHP/9ik597bOq9rOJbuXa0idiPc44QYIw= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2017 20:48:08.2790 (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: BN1PR04MB405 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 |
On 04/26/2017 10:47 PM, Bart Van Assche wrote: > 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> > Reviewed-by: Omar Sandoval <osandov@fb.com> > Cc: Hannes Reinecke <hare@suse.com> > --- > block/blk-mq-debugfs.c | 6 +++++- > include/linux/blk-mq.h | 8 ++++++++ > 2 files changed, 13 insertions(+), 1 deletion(-) > Reviewed-by: Hannes Reinecke <hare@suse.com> Cheers, Hannes
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 {