From patchwork Wed May 31 21:30: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: 9758195 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 8201E60360 for ; Wed, 31 May 2017 21:32:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7433C2097A for ; Wed, 31 May 2017 21:32:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 68EC5284D2; Wed, 31 May 2017 21:32:04 +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 B6E842097A for ; Wed, 31 May 2017 21:32:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751041AbdEaVb6 (ORCPT ); Wed, 31 May 2017 17:31:58 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:20566 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751126AbdEaVby (ORCPT ); Wed, 31 May 2017 17:31:54 -0400 X-IronPort-AV: E=Sophos;i="5.39,276,1493654400"; d="scan'208";a="23035530" Received: from mail-by2nam03lp0052.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([216.32.180.52]) by ob1.hgst.iphmx.com with ESMTP; 01 Jun 2017 05:31:12 +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=YtdTEkiX8m5RqGOT3354/byV4gJUP1fzlqK51+idCJI=; b=cZ/bmjjlYJe3Ti0+jmBl4C0hq9CIASkr9hu0gzFjjByFr7GYnLV/C4rqw/Szc9GQE1zb+o6PCfp6rRpMIKWn9kVFnN3JkOXvE62N2znSW5MlpTNStDm1Pshjg8RWDCqDH3NfdEdeWnLHVK1hREW3VrvZ2pLAGOon6nALrINIhh4= Received: from BN3PR04CA0016.namprd04.prod.outlook.com (10.166.70.154) by CY1PR0401MB0923.namprd04.prod.outlook.com (10.160.160.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Wed, 31 May 2017 21:31:01 +0000 Received: from SN1NAM04FT003.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::208) by BN3PR04CA0016.outlook.office365.com (2a01:111:e400:7a4f::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Wed, 31 May 2017 21:31:00 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) 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.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 SN1NAM04FT003.mail.protection.outlook.com (10.152.88.174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12 via Frontend Transport; Wed, 31 May 2017 21:30: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 82.C1.51736.0163F295; Wed, 31 May 2017 14:30:56 -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; Wed, 31 May 2017 14:30:53 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-3d-592f361082ea Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id C4.BD.18148.D063F295; Wed, 31 May 2017 14:30:53 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Omar Sandoval , Ming Lei Subject: [PATCH v2 2/4] blk-mq-debugfs: Show requeue list Date: Wed, 31 May 2017 14:30:48 -0700 Message-ID: <20170531213050.30276-3-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170531213050.30276-1-bart.vanassche@sandisk.com> References: <20170531213050.30276-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDLMWRmVeSWpSXmKPExsXCddJ5ka6AmX6kwZEV8har7/azWaxcfZTJ Yu8tbYtDk5uZLA7fu8riwOoxsfkdu8fls6Ueu282sHm833eVzePzJrkA1igum5TUnMyy1CJ9 uwSujF1zfzEWXBOo+LL7JmMD4xS+LkZODgkBE4nNm94xdzFycQgJLGWSuP/8JQuEs41R4sCF h8wwVZ/OX2IBsYUENjNKvHuiAGKzCRhJfHs/EywuIqAg0fN7JRtIMzNIzbdzC5m6GDk4hAUs Jbr/R4PUsAioSjzdeRWsnlfAXmLPjCOMEPPlJc5u2ckMUs4p4CBxYCkfiCkEVDJzpjHIRAmB aawSC26eY4doFZQ4OfMJ2BhmAQmJgy9eMEOcpi5xcsl8pgmMQrOQlM1CUraAkWkVo1huZk5x bnpqgaGpXnFiXkpmcbZecn7uJkZImGfuYLz7xPsQowAHoxIPr8BFvUgh1sSy4srcQ4wSHMxK Iry+avqRQrwpiZVVqUX58UWlOanFhxilOViUxHnPyUyNEBJITyxJzU5NLUgtgskycXBKNTBu 74lSfH9yx/uLP6c3qd7bXZv+Y/nFkhmLn+ueNjV1zHgi/Fv5XPXczcKmB+Kmuk18Ki7+S7BP MqcrnHt/TFVaacjLy9a+nX9r7/i33eBlrtHf1hClFmXgrf+o12SS5pNeBZndRdybJILFnXZt k5ze++nIcvWLe0Onnu9YzRnM47zPNnfXsZ9KLMUZiYZazEXFiQBuB9+4bwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDJMWRmVeSWpSXmKPExsXCtZEjRZfXTD/SYPV2FYvVd/vZLA7+bGO0 WLn6KJPF3lvaFocmNzNZHL53lcWBzWNi8zt2j8tnSz1232xg83i/7yqbx7Q155k8Pm+SC2CL 4rJJSc3JLEst0rdL4MrYNfcXY8E1gYovu28yNjBO4eti5OSQEDCR+HT+EksXIxeHkMBGRomG c88ZQRJsAkYS397PZAGxRQQUJHp+r2QDKWIW2MoosfL8caYuRg4OYQFLie7/0SA1LAKqEk93 XgWr5xWwl5h4uIEFYoG8xNktO5lByjkFHCQOLOUDMYWASmbONJ7AyL2AkWEVo1huZk5xbnpm gaGRXnFiXkpmcbZecn7uJkZweHBG7WC8PtH8ECMTB6dUA6PfRYl423fKjEyPRH6m1JzMdbng L80Ru8+5UjGB2fI7R7DTseWbdD25I56uW8EX6rTy/Menk2ofPFp4cN4hi6U/rmueb3FU+n5q Wf3iVwLSf+wX/jh90DHCWs40xzK6P3nP1GlfvN5rVro9j0neZyjvfEnsmWS7//Z3PXc6VJ3m Je2KrA3ZLq3EUpyRaKjFXFScCAAgOnYxvwEAAA== 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)(39860400002)(39840400002)(39450400003)(39850400002)(39400400002)(39410400002)(2980300002)(438002)(9170700003)(189998001)(8936002)(50466002)(48376002)(8676002)(47776003)(38730400002)(81166006)(230783001)(110136004)(478600001)(86362001)(356003)(54906002)(4326008)(50226002)(33646002)(76176999)(50986999)(5003940100001)(53936002)(2906002)(5660300001)(106466001)(72206003)(6666003)(77096006)(1076002)(305945005)(6916009)(36756003)(2950100002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0401MB0923; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT003; 1:6jFgUuCHNAzNOjj17XYZxX90+4qaoxgAlXSL4TQatuedW1WuV8lbuw2ETrCTbKMgLgzfYcv03Cvwv6XskXLPLhb0o35Q1ugbmuztH325DcYgIqYcU2WbIdSdRNQw/xpbCJKqvpdQ3SrNEKl5Vyn6XlOAmg2BmUCTKW7QT5ANehwWattsPJ1DfP6mvkBsRXizWry4XJiXtsdpDGCCxaERxiYLBPv1Hjx5LX0LECbZzS142E1GwAcBgTDS4E+0xWVdyFlUuMBxZyCsjzFmTR2G22uUiK3mHqxnnWnvTPOIusidH+0HO3pfC7U9+Y+Q/7Wx5/mbp524SQaylDt8JLnKMAen4A3Cfm3elyA0ilRU0J+nBBOBYqbVZM0QcbfFZLUc/ApYkg11RR0n74NzRWuFCN0d5xQ31WZlT3euq87/51dYpxM+kMKkJSWCvI+XraD72S6vPM5Nll+byAPBRsRlcaoKmZLuEM7i3XuLRoCS+iqnaOp35Snyn+QCeSLzGpWS X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR0401MB0923: X-MS-Office365-Filtering-Correlation-Id: f3ec8d4a-b4f7-47b9-acd4-08d4a86c5506 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702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8+4SN2wP9WX9erlGfZfGJEKvOUWuCKUOEWinyoo2694nzMU18OlGNc9Y=; 31:C2atM2oeEDicgOIDIjCYeE9WBDyNf1V1uOvyYUDhIoy9r6FqAw4sMUthN9OOemc3A0cb9fksYsl4eDS2fUUoSyj9llEKpunsXFBHDX7HcLju8fEfJI7f+hqlQ3c2OG+KwbY3uAikEClQSp1ivX9ELb+b9XIwEjdPNrR0Cd0OGRW1yJZxgrwGi1Es3FniRQQkqZA9fCk4CAnv/B5JXZO+zIaMLYcZuX2WBQwiDM4EPNikk3ZmaDWm8hyBqS1qAETvobJEEIdYiiCciaQ+Wicxyg== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB0923; 20:sniFPWb7iI1uIYnUvmltyVJ7ee8Hx+wb9J3Dforfvgf0fXhID+Cb0sTBFNV0yoYqv4PI4VgqaCU195taPp/vdblKpNGgao6Zpl4p1pPFdvblnBaEXT3A3zSnQDDQ68rnB6OupaZn/L1+UWUZrN9crNWeAZUbEfd7TCHqE/6Oz0tNev9DkL8RBzUEdOg4HCqTLxscPGWI+NxLByN+GBm58gypSVOWjjXFn4XvTW3W/W+01GBIVOlipt3Y7wRr0aq/AMJrQ/QAYsxi7889vQ/euWU5h3NQNTPWDUkvxXNR/KI3JFZQtlwigwISSqa2RtXThozGkMPuDxDEoJAZy2xrq+kUvfs82Q+ovTg8FK6tpxRlFrpyGK/+8Niq3EAjJW5mhsLzICZcEvajZJxCft0TU9X9VHXk50KG+HkjMgLQyu0lw0IYQIR7R96Z5gsSFzzGa2Olg25Lshswh4u3p6bnmLHsLV4aIsDVoYoJDop4c9T5JqPd6OakowhKfMmER+8T X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700073)(100105000095)(100000701073)(100105300095)(100000702073)(100105100095)(6040450)(601004)(2401047)(13018025)(5005006)(8121501046)(13016025)(100000703073)(100105400095)(93006095)(93004095)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(6072148)(100000704073)(100105200095)(100000705073)(100105500095); SRVR:CY1PR0401MB0923; BCL:0; PCL:0; RULEID:(100000800073)(100110000095)(100000801073)(100110300095)(100000802073)(100110100095)(100000803073)(100110400095)(100000804073)(100110200095)(100000805073)(100110500095); SRVR:CY1PR0401MB0923; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0401MB0923; 4:HHPQfRW5syNZpM02T9bNbw+JveIMdQCtz9ek4rlL?= =?us-ascii?Q?oiNQIYBPPVWYdh8qEonq2A1nIiX+hXaDSdtG2uPD9CoBaYIp4dMp+Ibrvs4Z?= =?us-ascii?Q?B6vSItFmqr5UJ0GKXMvYCM907fm87GttCVbmQvQF93AXM8plPCRpPT6cNXz4?= =?us-ascii?Q?xVXks6illGch/r181PmhMRoN8pkAGoH+YfRk7OqYIQszIbFS8wIO2mUYrwFq?= =?us-ascii?Q?1Rn9R3Q9Upk0FDCnjE/EQ9z/ePu61R3FZKNVs1w1gz6+3ODn/LSnBs010jP/?= =?us-ascii?Q?IEliToglLP95PCijf2tyAIJOy22ipzNjbupB+iyjKYDyOIxDi+s+I0cTCSyi?= =?us-ascii?Q?ozpmr2F+Vm3y1wQC0gTzMql+yo1CjskNf2zWuJeFSucr7i2GUt3lrrdIEcoq?= =?us-ascii?Q?/nUvGhBdHaawbRbgXyAirp4qHz5Pwa6xMM/7euJ5Y/lyEuCUTeRGUq4LMeLK?= =?us-ascii?Q?rezJVX1yOBL/FduwaMwHdKFyKtJ8CFGePgWvrfqytt5GwctiQ6r3QaWHXZcC?= =?us-ascii?Q?K8RDmba80bW4oV53/jc/yAT0tdjgPjr8BGWT7hUQCiNMxv67G1PAWbCWar5i?= =?us-ascii?Q?1L49yGt/LeySSrsHpFkJVK7LohHGClwESQxFpgdDE5A2hEQKkDSfBcYbROHR?= =?us-ascii?Q?E7uBx22sKRsVXVbU4NJmi4i4c0T97iZ7IT00xF1ztnNN67YtGKae1Cplmauj?= =?us-ascii?Q?U7BfHVrurGsU/zrSuiZMk+cWoG/64yUJybhAwV6hMfIajBTVjyWP4+Z3dK8j?= =?us-ascii?Q?MzEfdDT1yQ8PgXef93A2tA5uSesC5qk6F7pBazGdd0er8AI4GycwIzt1nTBR?= =?us-ascii?Q?6Y7v1R8em/fGddMa+dLfFSDKJKtAnpi9rkDpCZL2MxdJwrn5ndHD55jq4cT2?= =?us-ascii?Q?A+BcosFqsBEGqeEvOrnMrNuvDzMpdQR51jYhJVdVYXXyGNEXa9/dd72IO0Mr?= =?us-ascii?Q?j/B+vdhg3DT1EiaeB7vN0ngkFJ//3152Jq3m2Zt9KLBdDpZ/ifOIxvk+m2uF?= =?us-ascii?Q?Yoinks+8nAyR1sGOMoSFnz1xocasaOFkzrRQp0D0y8m586Qundj5dJDLsfrh?= =?us-ascii?Q?Re7vSPlARP5pDqa67a6CdEU4wOdnXN0apvtgHsVbgGrd8H8DPPhNSa58Y8tC?= =?us-ascii?Q?8UzlvjnMyOCKuoUEShRBkKWUC90GXhtO2D4QXIZBf+kdyPg2Km20OAWoyHco?= =?us-ascii?Q?79dAQHBc2GCFdeCpb0iUXpIao7zluOVnD6MRoiaKRvO3VWmYUnaON8t9HuF1?= =?us-ascii?Q?RQjcdEUSjruTGJuAe0id9nf69Vx5bXc1s3ta646lhQ09ERvEujV4eFZEM97h?= =?us-ascii?Q?eg=3D=3D?= X-Forefront-PRVS: 0324C2C0E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0401MB0923; 23:qYP/kjfJBosn180fD8tjDNpUn89/KONeeeNeB95?= =?us-ascii?Q?QFb/kq350SW/Eur/8iJT6QJ+Q4dr2Su0Huvdt2MOy4ZZWu4lzOVT+LmBPQrY?= =?us-ascii?Q?c7NVTMT94eDCYhqV6mTL2jub0r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22ZgAIDtk7BXYOmQEUJLy/cmUW0D4n39eZF3PGewXewqRZqjUB3b/REXgIKspt+THWZxMdhzi8pO/aGQegtFF9W7dgGfG9+PQXm4tMRTKlBFkN2MNGVGo7YifxeL/0JCmX3s9D6u0OVc6z2cUmmlPXj8nHuZTCkoBPiufh; 24:p+zedwUEXYTySSTnBOQyi30hqeenwgxCzaMvZRNwIu9b4adMo84PytJuy0wjtf8G5NfnrgKtINPCsrwqVt83NjSPlgKLDM4FIjxmjAOxEyY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB0923; 7:FSh33X0jNwxix7v5C1q2xFwih+eE0FPwO5iUoF35F1904IUXnde9sR+IYDd3cmD1i2+dfzUbQlGBrRAjNQWZ4gxQ7NW69SPI0BdqX9wGviW5VRBD7hQcHx14tHr1S2mpsd/VI9GTBhQIsMzOZUd0WFYvOVtxyyOKcVnTakmOxk/4enJO2XCY9ofmDelNX8kzZiJzuwysXVy1vpYmvpvEID0GdQYVp4wcJmE27l0oJylBIKakRsOu3J2LhSbV4LqOrwitu0Caoz2skzuTLpuv4YDqzKU1H1WRskR2NmhVuianNkCOqpezTP2o4w8sPDXa01l5akSi8nQpz0e/EBHgZw==; 20:zcwMiCQEJ2eJ/i0wwY7hYdhW4PEXwFSygC7GH7DkC2ZlcAMj0+QqXS5ba1WzfuO6C65VJqHBJUEuokwsuxswa4OuBlWgRGrWKHqq1M/uZ/GziH68djy0n3BqoL1LeDuM2rf5hAzID0/q6G7uxpAoTfEd78xJdzpJDY/Kwkl6ZQ4= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 21:30:58.9061 (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: CY1PR0401MB0923 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 When verifying whether or not a blk-mq driver forgot to kick the requeue list after having requeued a request it is important to be able to verify the contents of the requeue list. Hence export that list through debugfs. Signed-off-by: Bart Van Assche Reviewed-by: Hannes Reinecke Cc: Christoph Hellwig Cc: Omar Sandoval Cc: Ming Lei Reviewed-by: Ming Lei --- block/blk-mq-debugfs.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index d56ddd7a1285..8b06a12c1461 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -308,6 +308,37 @@ int blk_mq_debugfs_rq_show(struct seq_file *m, void *v) } EXPORT_SYMBOL_GPL(blk_mq_debugfs_rq_show); +static void *queue_requeue_list_start(struct seq_file *m, loff_t *pos) + __acquires(&q->requeue_lock) +{ + struct request_queue *q = m->private; + + spin_lock_irq(&q->requeue_lock); + return seq_list_start(&q->requeue_list, *pos); +} + +static void *queue_requeue_list_next(struct seq_file *m, void *v, loff_t *pos) +{ + struct request_queue *q = m->private; + + return seq_list_next(v, &q->requeue_list, pos); +} + +static void queue_requeue_list_stop(struct seq_file *m, void *v) + __releases(&q->requeue_lock) +{ + struct request_queue *q = m->private; + + spin_unlock_irq(&q->requeue_lock); +} + +static const struct seq_operations queue_requeue_list_seq_ops = { + .start = queue_requeue_list_start, + .next = queue_requeue_list_next, + .stop = queue_requeue_list_stop, + .show = blk_mq_debugfs_rq_show, +}; + static void *hctx_dispatch_start(struct seq_file *m, loff_t *pos) __acquires(&hctx->lock) { @@ -665,6 +696,7 @@ const struct file_operations blk_mq_debugfs_fops = { static const struct blk_mq_debugfs_attr blk_mq_debugfs_queue_attrs[] = { {"poll_stat", 0400, queue_poll_stat_show}, + {"requeue_list", 0400, .seq_ops = &queue_requeue_list_seq_ops}, {"state", 0600, queue_state_show, queue_state_write}, {}, };