From patchwork Thu Jun 1 15:55:11 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: 9760017 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 AC7FB602BF for ; Thu, 1 Jun 2017 15:55:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EB04284F8 for ; Thu, 1 Jun 2017 15:55:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93909284FC; Thu, 1 Jun 2017 15:55:34 +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 1D225284F8 for ; Thu, 1 Jun 2017 15:55:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751591AbdFAPzd (ORCPT ); Thu, 1 Jun 2017 11:55:33 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:22077 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751155AbdFAPz3 (ORCPT ); Thu, 1 Jun 2017 11:55:29 -0400 X-IronPort-AV: E=Sophos;i="5.39,280,1493654400"; d="scan'208";a="23292703" Received: from mail-by2nam03lp0055.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([216.32.180.55]) by ob1.hgst.iphmx.com with ESMTP; 01 Jun 2017 23:55:21 +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=HmB//21QKcQ1REvBIIhsh9CdiKHKLtujeop3iJrGxQI=; b=Bv+kMr2zf282VgacrW5se+IeVg619IKs7/iLz61pKk0GCCuKBkKxjm59wdwctXLy7O3GxUjTTcUrzNTX9m3mYEMbksCYvQnIT8xXVYypF8TLZSV4SGWVOd9lQwKqUK6uhgtYpyz70463dq5olKN99JNv96hQSMJE24n2QUId6YI= Received: from CO2PR04CA0090.namprd04.prod.outlook.com (2603:10b6:104:6::16) by DM2PR0401MB0928.namprd04.prod.outlook.com (2a01:111:e400:3c0c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Thu, 1 Jun 2017 15:55:19 +0000 Received: from CO1NAM04FT005.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::205) by CO2PR04CA0090.outlook.office365.com (2603:10b6:104:6::16) 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; Thu, 1 Jun 2017 15:55:19 +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 CO1NAM04FT005.mail.protection.outlook.com (10.152.90.149) 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; Thu, 1 Jun 2017 15:55:18 +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 DB.0C.51736.2E830395; Thu, 1 Jun 2017 08:55:18 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Thu, 1 Jun 2017 08:55:13 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-25-593038e55ae5 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 25.7C.11415.2E830395; Thu, 1 Jun 2017 08:55:14 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Omar Sandoval Subject: [PATCH v3 2/4] blk-mq-debugfs: Show requeue list Date: Thu, 1 Jun 2017 08:55:11 -0700 Message-ID: <20170601155513.26712-3-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170601155513.26712-1-bart.vanassche@sandisk.com> References: <20170601155513.26712-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsXCddJ5ke4zC4NIgzmXxS1W3+1ns1i5+iiT xd5b2haH711lcWDxmNj8jt3j8tlSj903G9g8Pm+SC2CJ4rJJSc3JLEst0rdL4Mq4/kSt4L5A xc2Xx9kaGOfydTFyckgImEi827ybvYuRi0NIYCmTxImOD+wgCSGB7YwSh5dYwxS1fT7MClG0 mVHiWtsRFpAEm4CRxLf3M8FsEQEFiZ7fK9lAipgFJjJKbJ92B2ySsIClxJpn01hBbBYBFYlJ 068ygdi8AvYSu2YdZIXYIC9xdstOZhCbU8BBYsPxaYwQV9hLtP37xAwyVEKgjVXi6Ms9LBDN ghInZz4Bs5kFJCQOvnjBDNGgLnFyyXymCYxCs5CUzUJStoCRaRWjWG5mTnFuemqBoalecWJe SmZxtl5yfu4mRkhYZ+5gvPvE+xCjAAejEg/vA1mDSCHWxLLiytxDjBIczEoivEc0gUK8KYmV ValF+fFFpTmpxYcYpTlYlMR5z8lMjRASSE8sSc1OTS1ILYLJMnFwSjUwcr++xepwIIn7z1e/ YIVKp6KpgjYbTlSvY3BON5Q7luHheC311wdrWfHr19nPn9puURmjZFzCfzX1rK4up2D3EffC vKQjS3ZJRu158jqixletU+T69JBnnqdkch63lylsWeD0aGdBVfqpwJkt1ivv/93rvC+bR97h y4H5vtURfwK3d4VlivIpsRRnJBpqMRcVJwIADWH9VmcCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJMWRmVeSWpSXmKPExsXCtZEjRfeRhUGkwbPjihar7/azWRz82cZo sXL1USaLvbe0LQ7fu8riwOoxsfkdu8fls6Ueu282sHlMW3OeyePzJrkA1igum5TUnMyy1CJ9 uwSujOtP1AruC1TcfHmcrYFxLl8XIyeHhICJRNvnw6xdjFwcQgIbGSXWTZzBBJJgEzCS+PZ+ JguILSKgINHzeyUbSBGzwGRGid0vrrCDJIQFLCXWPJvGCmKzCKhKrLn8ghHE5hWwl3j9fBob xAZ5ibNbdjKD2JwCDhIbjk8DqxECqmn794l5AiP3AkaGVYxiuZk5xbnpmQWGhnrFiXkpmcXZ esn5uZsYweHAGbmD8elE80OMTBycUg2Myx4ufpi880n7zljxqUwzDK2bb9T859p7kHn5MUmp nMvX1sbGLN1dIiGtOHX2l1nSHF1mzx7FHPGQ1TkQ+2Fldrqh9b/39lOy2ObbBTp2Fuo8cN/2 MvWG0sEe89OmDmbPpzBInlvPc+Jaj/LmI5XRU2Wfaa79Eex9m/fWpdN+jZl7WSWXFdhLKLEU ZyQaajEXFScCAK2B0Ce3AQAA 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)(39400400002)(39850400002)(39450400003)(39840400002)(39860400002)(2980300002)(438002)(199003)(189002)(9170700003)(50986999)(8936002)(77096006)(189998001)(6666003)(2906002)(72206003)(53936002)(478600001)(50226002)(2950100002)(6916009)(54906002)(76176999)(230783001)(5003940100001)(8676002)(110136004)(38730400002)(305945005)(48376002)(86362001)(1076002)(356003)(106466001)(4326008)(50466002)(36756003)(33646002)(5660300001)(47776003)(81166006); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0401MB0928; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT005; 1:QhUiw2pFm7i5BXnMjdxkUK7b4UQVy5WWjnHfo1PFTGFT8jYzi9YMW49zGQZaCgIVEoYBVdL+66SfL0M7vcTaqYaCK+19HxpFoyDiF82YlRa8bmhYVLU9AYG3/bhs5AtsEBpV56pkqaIWRF9VJVKRE7Kc5jS0bQskE5QF891TmSYucO+gbd/fVi6aK3z6hfLCjpI0Yz6Tnnb8ndHkoog8nTsl04HpWuea/6pzihi8pZVYuCHR5vVOvK4KFWox8mF80/cJ/cM5SWIBPOc7xDcnMW0TbCOJgZscnFQ/148+xL75NgTOuqkMrhpkfA19HE+VwBWmuX63TiDoZTzTPXvghZou4pktvnAMq+z6ppmJ4Oe53O+En3YEAyxso5pn9H9B+PmmsAFY1GMeY797bt/Vwr7j1tTGMSfNW7U69+7XAEC+dRpYFqVgVFRZ6mQ6reBBSNolMGO4bW9s4+sIUS/2ukfYy9ijf/z4dPBlPPmpNWpPPeHfvBxnA+Y+QkyW4BCJ X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR0401MB0928: X-MS-Office365-Filtering-Correlation-Id: 7118e9c4-8cde-47fe-75f7-08d4a9069a50 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:DM2PR0401MB0928; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0401MB0928; 3:vlRDgpfFwGmWe4iGCA/nDdXPUmzJKtocM71V6kHJYR5UJ+VwRj8jKv2N07YhSIGyK952Xpzw1GFlsWXcXjB3+s+0NT5X1ymy+KnNnQuPQpdL/N25tOk7Yo10a+ruM9g/Xsk07Gz0uz9P8vTIdIal7mOvyuJ40rSwnwN/XYrGcJeR0m+Lbko32LjXNG4ak6c0YWB6nTBG0/6LgiIX4HoBygMu3BvZdwQEWHfeS8ufstjtLk348HqlEtuivDatvjKQAmde8g1yIGmK/r6LL80BMMVZbwvQsZmrwQXfYA7Ay+lxR3MBak/5OYTNhuZqjfJbQz/DEFT64WmklouUmRxMeWVQV3RIvngF1bgQzh0M9VJnXCkA1oyU06TzEhuZI0bjvL2VLVi9x/Em81zbV36RxYDzzpxoUpZ16A1nGsXtZGyJ7qUirTfABT38U9RlltxNlTnpV2p5fjc+19sYbDHTx6tDvJ7sIX5JUjP+tuU+A9GwY2CpDyMhlS8ygXi3ZTXnqA/F+lBTVPt6kXwTYJBsmQ== X-Microsoft-Exchange-Diagnostics: 1; DM2PR0401MB0928; 25:CqyrH8Pd3a2Q4PxqIYPoylTcNcL0JW+mr9xy1d26mH3nodR/tK/vb5KNlvX0J2cJW00Ts2/KCgMOcEBLOXapdpX4pH6tkkg2j0WL/CGrGCH6VEr5poJO42wo8BngnaVyS+BKXZw2AGhqeHRDi5iXGbb941gEUy6BSenWzvB+i+wZDx47aDQeT2ouyYU3wzPk83jbAHv8Wa9M7JlKLe5t3SMowb7T7b1Fbc6/wSx3kLZ//3u1ygofUy3TWjjCE9log6GMmxPCSxfvBY2L4s11dHWiuGh1JDefG7jdrorBdyjFjsE/Ox0tVZPpbXn968FwgsjLOedE4YMmYz52iEbFz0xEcmp/c0pKz8G5eAlPXT4ZQMw0K3j/R5FCjB8BHV0nqNCNCCmvR756G6ppB966SCjj8A9FyjY/qA/OAtGMOae3UwP0qvnolgjv7yj1YCm4C8r+5WpaDzV++3JaH3YRymfIBFDcQS6ZNNQZcHLeuWg=; 31:y4ATNv2RoLd5tLytpOQJ7Ifd2l4o8gfx6PScJudf2Fj6Hcmt4aXtqtTgOcj4u2njaEBLg1cVtjSc1J4gUTh9Pw24VPyN9W7wSKEbJMCJMUaUwNZ00XBlr/drmpyfDUCDCYi0cjW3dyB95cSlCm0cK9u1lYegWsETlCddax6OfXVtH6Bq2Yx27CMqqR71g7NFsAmMjbjOaiSBQY76CpIlxG5nIz6rWWBI9QU8GVSGVjuHvLweESidZD/4zmUyjnAi+nj8owJizocUelhuIOWTGg== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM2PR0401MB0928; 20:9+sh6/Oexrk7t1TYBrAj8S+05Olde3AJ7eybIU7MOwtJrsVYGYRy0SRE/ayDpKGWw7yYuder/rzls9YCtDURf1FhID/VzbNfQW51oqvVwyYomN/7/ACK28hqg8GYNL3ANXws2J5zDCFtJoDhEuJAo+XMJRjFStzS1O/ZBghJNaJttg/VClwlmn5AlvMblx2HdOWweLXCBWrlDnDyet92pmakIW8lQr7do8keV29kIPhbYqTcE6NJhF+NUAN2YRA15wjXWMgUcM/xo4tpwpnf8thqErSlz29zGxCuWJTyl2P3GQiAYSiIMbj1hIOiVUuBy6GDkczwjyHd5kum3Xvm9l/QxH97uM2o6OZT1kTzp0C7/8rTsG/5ZFbuA804aM4f2vXf+bzK8bG6iUuYhzwKvhbLW/dgFg12/GiEPA6+mV7QAvqY94pACLsPz258N6tuXmmX8MhmzeOKD8wcztsyy8Rp9AiAHcWVRHT8OAKCMwZnoNN0gID6oea1C47efvX4 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(13018025)(13016025)(10201501046)(100000703101)(100105400095)(93006095)(93004095)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123562025)(20161123560025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR0401MB0928; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR0401MB0928; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0401MB0928; 4:oHpBhsxsgLjpe8qRSDw1yODbATya7yYkrqf+Ydx6?= =?us-ascii?Q?//9RtirutTFPtQBrTxe78wRZX8UjbLydULM6/o0orybkw4tVUwY6HKYz9T6/?= =?us-ascii?Q?z0Lp77LI2/EiW+wnQGMRs2ygzn8yno5ltjgNqXyBQqDnoybMYC7Og8/1Cxox?= =?us-ascii?Q?AjBxbE1YD3tUKLYudSGzAHGbVnCL/P2pmVcMKuzpUJr8aVFNA3ki5MtfQGMv?= =?us-ascii?Q?ZpL8GzuULrnLSrK6Tz3DJ8ojg8Ssemm3ccpJ9Ec/0i2XwF2CiP4JHL3icVxI?= =?us-ascii?Q?HqziNZ87R1jm5Bv1OG/xax8emT9yjR5t4paDJ7zF7PyLWDyE2EF1p0kSH9DV?= =?us-ascii?Q?Hu7YGjQZteiAmR2zVY8EtMrnyqQ0Mq7R8qiu81q23pBvHFoEY5loPSC1GTrn?= =?us-ascii?Q?r3/PK8fdFhukEpvY6lSSVtMai3AkNUugdkrjvkY8/w1ay0sHKVnBMgfxXIsG?= =?us-ascii?Q?0JzNLEgck9IwHJFKZ1kmUAuq/YVu6tRdC3s6t9fyk0fTrstFLvGEs67RIpFZ?= =?us-ascii?Q?fFuh2ouq6P8aoF1HOixK2uLxs73YPvRVBi4W/Mri0X1JxidKMsPWuL5JogVB?= =?us-ascii?Q?wQhbbnW6HND3xsD08Nr19T1jhC1PBJgvg97M3ZjAkMpdwWj8Viivl/bridaw?= =?us-ascii?Q?37J7a54onhesyJCc8tN+0uju3SpGWMpsxPtxgPjzD9F8cT3VxBN5u4pg/tq8?= =?us-ascii?Q?2GHcVH/j1FjUiVDSP2xFzz6SE68Ap3AREL4nsXk1I5261ISblY9Skz8Ih+Ij?= =?us-ascii?Q?pXJG9Mwf1ZIjulOAqhjbMW3yZ2HduxSUiYCS2a/9iYM5Snm6g3xPmRg06Goj?= =?us-ascii?Q?1r1aPEr2TQsTKJiTNk/rrMdRrLerRj8nc31QWu8t20PJ9M9vgvv52KTg8sz3?= =?us-ascii?Q?xsee2kehwGkpwislSo5fDonlKnOi0taNEpKdIQ1XRCbKjuaa5WriIQLtGSbT?= =?us-ascii?Q?hyV+FSSRP6vLQdo0TA89NM/DtGuNXlblw7n8sp8AvzYrGlNN5pH5ubdjswwF?= =?us-ascii?Q?alFCovnc3R/xPsjygNffKNFPVXA2EQWGFSyw3HZRDiBNx5uU3FNHCUCH8BHJ?= =?us-ascii?Q?qJim+EJDDnpMaoX3X2hAmILaknLEYe1I7IZAtsQVh1fAexDnXvjOWY1bA4Vm?= =?us-ascii?Q?V7v6bS+abeyiXMjNISky/4No+CsK2R1O+UbBxPvlGKMCqNzLHaagUot4HY12?= =?us-ascii?Q?sWWbsMfLD4b3bWBczUazruOy8VMSurUCnfX7EpTQhJZmSF0eAajE1GozcYoH?= =?us-ascii?Q?xGTubGhEQsowysrmnragUA0czBpJVL8g9+5j9Afl1savVdYwSKLcfGuLLGe2?= =?us-ascii?Q?lQ=3D=3D?= X-Forefront-PRVS: 0325F6C77B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0401MB0928; 23:HgMfj1sYfZtW8u5Q4EDgb9zwf+wQQuJkqwughne?= =?us-ascii?Q?OY4ucDMdclqNCyqaoFrSgYAJQjFTxxuN7H3Wq58ggVdsqRVz3dTrPCh8dnWN?= =?us-ascii?Q?MC9/eYz30dPKnsTDWu/lHfmr4KbDj7zVKaz7RJrWwmg273T+eDu8OSIu052T?= =?us-ascii?Q?6fekaD+Puj5t+ocul5b6aXqbwP8LzOosOrZ6PBit9g4WFVaFewW8kocE10l3?= =?us-ascii?Q?jUutV1bHvS3Z8sQgJny+JoMW0SNsN/Xier+48ZhPjBJLvUjZrtzgf8ms+sRq?= =?us-ascii?Q?XALDFEGtbJCwvbbGHET71EVFJeyzuarMwqaBFSB6UlsIFlxoRezyDDZUe/xy?= =?us-ascii?Q?7YHPm3cfF2/QkTF4t6t1qmtP4iiMj9aoCnixYFuJ9AkZBPb2YXJFJ2M9hJ6E?= =?us-ascii?Q?cL/Wip+4MlRwRKCsLvu8/4cOFy+I2QO9aBByc9+ok5TCVDrslxzwKddLxSDr?= =?us-ascii?Q?FIpOFkJK758wF5TOGZsPLx0L7xIgCXCkj4g+2eXhA3H+qwhtWHvJhBugLm4m?= =?us-ascii?Q?2SiNh7uPKFDNmCc0DZn4yJJnVYQc9XzR1S9UkXuHhS/L9A/Y0sm3VLLXjQsm?= =?us-ascii?Q?thCnGk78MD5q9Gu+7fBH7xF+WsfTVGDgH8C+j37gFkuM0uhGI9Qkgye1sfOB?= =?us-ascii?Q?ZUrXskRgDICFWTjaWvDuI+5Dk9BPOwTEXdgu+3wFZ3NwEjlVaicdrMhqKvbX?= =?us-ascii?Q?3j0Yw6MUcI9hybnMWOlQgKUPs1Y6rrGXTV23HS+HSkL0AqJQGloZVw64Tt0C?= =?us-ascii?Q?kQnYMiHoSG6HOkBhhYEP8cJ9ECIq5KudBbHMJqYBoN18vk6NgE1uWbtfbqQo?= =?us-ascii?Q?9lg+p66Cr+b7kxHlqvNIdz4m6HwP3XzIP0hxgjpMt0haH+eOpuMgzt5VPkNx?= =?us-ascii?Q?Ht17rwo17JTRXlq6vdh+TAp224j/P8elFfUYEOGxt7nhPlJldv3v4Puocir9?= =?us-ascii?Q?BmyB7ILf9SjuUYW56+f6Q4aQuC058XjmN8q5ypFziOvi8m+q+fbOIrfTyeaN?= =?us-ascii?Q?C8QIoJJZthN3JOJxfxmeFSFgAuFcGkMI6pgCVD0bieVIWZ1GdI5TSDMLyGU3?= =?us-ascii?Q?LN4olathqGbgMoKr6MDOLUV+koBok?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0401MB0928; 6:9xk8LwsM9fgjtFG1UUosTzWQckEkajkj5y6xPZTWgxodyNAQhqRILUnGYdvM2VjPXI+X6YBi+km8puBkhTPFka+AJu+n1QK24WrMI4C2Y39lQOTDGjJF6XdoaOykAeo4QeycbZdF5cAUJUgYIIQI5J92oFyL3/7DLI08UgmpCOGnlSxROdpRKgLEbs6jjR2LW28aYCj/izwPjK1MMKTt29ay7Q5KZpSJzA1UmaV0pnf0tUqTxLUM8dhP8uTiAOMkU/E+apnlEGAVgMKTxTnPRkUJpiVD+RzMbQeWKMWkSW24658rVSmEIu4cjOuxBd/0y2pismtcye71bnbW2ONNa5TmfEh+co/zjtT5hQ4YgaDqjI3+GbxOWEEQHZAsBow52XhSm0Ghd+9AM29eep8qS2WSfhypiOMu7sg79zxzDnhz6i14zhsRUMLAc0ZFXtg4EOAvQoVRYppBkwD8O4MngioI0jHnyuAoMGu8sFRewPQDsnroTeaCgSX14KuRZGpNdcg5NW9F3MwY8F26uAWjYlTL/PZc5KpLxdSOqFBF4Vs= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0401MB0928; 5:g5AnU5HXOPHFU2N2ww1hDAeCizYXum2qLdR295RstkNzUtPwvmMrzm0JstQ5ov8KRFfqCv/4NmDzp75r+IENCac50fmzEPG+sagkliJUdahLmZb0ii37EGuoUPzPorVPMc9c8yr1+UGW6r34ivwNu/WcwaGbX+IibSythtvFrNbk1Cve5LiPS+KQ3/snhWV5VOvZStb03u+Tce0Fi0avnuHGd86wFzVMQiuVymhDoEH7oC0MfDGt1eIHtFK6uOgOAi3Vl6pnFMpWYUmqSyAvbWUVYEAFeb4nrkp1NE7RNWtS9dvcNKZyXSEFLAvRbkBf/X/iI1Bqn4KPFmMYA5jgmLAp09/lN8vP2fbSRvxYBta/Ki0dObltUmnJV3Av+uoX0gAczQQGbw2c32tSFAgGGlwFFmrlH2K7HPUvviJAjeSnwAs7Bg2mT9PhXcHLsszBWwT79H5U53gIaBOJEx7jpLzCyLrQhCuLHpa8JUkxA7hxVXj/XPJYI4lYVHv8CIbD; 24:QPfg3ytdnIn/46jmtSylIN/D0EnCc8H2zycU0+spq6aOcuyd7SFX0IsFUG5PYgF1OEUFc7pCupmFxlf8dw+clwv867lnmq+zUx9Fgiyh8T4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0401MB0928; 7:APjh5OCZvCExH9KzV4ui1JgXODlsPqWx1LgALc7WJ5v9EKmldllJH08R1jioRoyRSNtnN0KYcOheojbWTysS7C96jd+SyVWVBQJrg7hn/esEjXrGus5htw00MBCLbafcnb24AuQviEoa1ofJPc18tffHxL9Dey8XUQuHXrpLWmTvFwIKwinRQ0sqoWouRXPKGPQz2g4LKjdFEq0Os+T2IaaP/xcAmvScadfinDwS1CVDgFwfGaoQvjHhj/uB3QJGgDoKtYAcnp7lGbEdCmYeldFCyLjUz3giGxc1bak4gOSYDnztTWVG5Zj280Kpm+0bXb0L0+8Ja1vILvbUxk7uxw==; 20:Tvy/LoOtCEyYPwdqMA8PsXhakpGwx6xF8HIxCl35zZwH71iSGMJ/Uo1Clk00lrknxZpdnw8Yl+N/ajaus/ZjfnPEqIkKkRXlFv8m6LFjK1axt7ZmGbrQxtkgiJp47qAVLzFLx8CvXsHVNjyvx+30ZYtKED88SHqnAd+V5LN/2Rw= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2017 15:55:18.7132 (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: DM2PR0401MB0928 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 Reviewed-by: Ming Lei Cc: Christoph Hellwig Cc: Omar Sandoval --- 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}, {}, };