From patchwork Thu May 25 23:38:09 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: 9749421 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 1364C6032C for ; Thu, 25 May 2017 23:38:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0423328381 for ; Thu, 25 May 2017 23:38:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED082283D9; Thu, 25 May 2017 23:38:37 +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 5223128381 for ; Thu, 25 May 2017 23:38:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967268AbdEYXif (ORCPT ); Thu, 25 May 2017 19:38:35 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:10641 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969351AbdEYXiW (ORCPT ); Thu, 25 May 2017 19:38:22 -0400 X-IronPort-AV: E=Sophos;i="5.38,394,1491235200"; d="scan'208";a="117415088" Received: from mail-bl2nam02lp0087.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([207.46.163.87]) by ob1.hgst.iphmx.com with ESMTP; 26 May 2017 07:42:03 +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=tCdaoq5fpjsKC0qjsxlA0f1n4mV4/VGz0Tb2LM8L54U=; b=MQjVp5vzd1xS5vDn6YBbmlNxPed6UYn9b4/Ex11b/ct5YZxwQe1v4gw3Zm4Ii15cbqZSOe7N0MHAYQ5rYoXQ+GrX8hzMPpAC9o25r8cVgEYrExoYzG0VWHW1qdqx+4xrxOZ9gYt5peLAY5GC5mRBoc7LhFVvs6SXjDuR2aLWsXk= Received: from DM2PR04CA023.namprd04.prod.outlook.com (10.141.154.141) by MWHPR04MB0368.namprd04.prod.outlook.com (10.173.48.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Thu, 25 May 2017 23:38:18 +0000 Received: from CO1NAM04FT043.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::207) by DM2PR04CA023.outlook.office365.com (2a01:111:e400:243c::13) 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, 25 May 2017 23:38:18 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; lst.de; dkim=none (message not signed) header.d=none;lst.de; 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 CO1NAM04FT043.mail.protection.outlook.com (10.152.91.173) 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, 25 May 2017 23:38:16 +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 D2.25.45291.8EA67295; Thu, 25 May 2017 16:38:16 -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; Thu, 25 May 2017 16:38:14 -0700 X-AuditID: 0ac94369-166ac9800001b0eb-4f-59276ae87117 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id B6.54.18148.6EA67295; Thu, 25 May 2017 16:38:14 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Hannes Reinecke , "Omar Sandoval" , Ming Lei Subject: [PATCH 4/5] blk-mq-debugfs: Show busy requests Date: Thu, 25 May 2017 16:38:09 -0700 Message-ID: <20170525233810.23211-5-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170525233810.23211-1-bart.vanassche@sandisk.com> References: <20170525233810.23211-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsXCddJ5ke6LLPVIg1f3BC1W3+1ns1jwZi+b xcrVR5ks9t7Stjg0uZnJ4vC9qywObB4Tm9+xe1w+W+qx+2YDm8f7fVfZPNZvucri8XmTXABb FJdNSmpOZllqkb5dAldGw7HrrAV/+CrOP1nD0sB4jKeLkZNDQsBEomXhMbYuRi4OIYGlTBI7 fsxmgXC2MUo8On+QFabqwMUpUFUbGSWebzrODpJgEzCS+PZ+JguILSKgINHzeyVYEbPAFUaJ tZe/s4EkhAXMJTp/NIDZLAKqEi0/34FN5RWwlziy+RkLxAZ5ibNbdjKD2JwCDhJTnuwBWyAE VPP8UxM7RM08VokDd2shegUlTs58AtbLLCAhcfDFC2aIenWJk0vmM01gFJqFpGwWkrIFjEyr GMVyM3OKc9NTCwxN9YoT81Iyi7P1kvNzNzFCIiBzB+PdJ96HGAU4GJV4eDkeqkUKsSaWFVfm HmKU4GBWEuHdmq4eKcSbklhZlVqUH19UmpNafIhRmoNFSZz3nMzUCCGB9MSS1OzU1ILUIpgs EwenVAOjlZBXcYSc20KJ778F1079Fnqhw1OPV2mKAE/gU3blVEH9LV8fdXKduZWp823HdIHp f1KtJjSauSqcfZ+5fNqlzev2dJaLWm46p1T4brdu4y7Hnew7ZojN4Tjt4iTI72Z/LUuBdeWz LTNeTN1+wnHmnbzmPff/P9B34DsTte0hv9+ZPRvrM/nilViKMxINtZiLihMBFcw2TnwCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJJMWRmVeSWpSXmKPExsXCtZGTTfdZlnqkwauL0har7/azWRz82cZo seDNXjaLlauPMlnsvaVtcWhyM5PF4XtXWRzYPSY2v2P3uHy21GP3zQY2j/f7rrJ5TFtznslj /ZarLB6fN8kFsEdx2aSk5mSWpRbp2yVwZTQcu85a8Iev4vyTNSwNjMd4uhg5OSQETCQOXJzC 1sXIxSEksJ5RYtPan+wgCTYBI4lv72eygNgiAgoSPb9XghUxC9xglLgzZSobSEJYwFyi80cD mM0ioCrR8vMdK4jNK2AvsfrQe2aIDfISZ7fsBLM5BRwkpjzZA7ZACKjm+acm9gmM3AsYGVYx iuVm5hTnpmcWGBrpFSfmpWQWZ+sl5+duYoQETtQOxusTzQ8xMnFwSjUwOrxXe247U++8xk/h xPsFe07MPZrYqHNYJcczq7tEoutFyyoHx92Gcrvzni/vlcxc12Z625Ip0Tm99fWpPa9VP7cL mXHk5V352yYm8b+82VlGUzbksoF64oK/HnfFD73uWxj/x9PtnnL4j7rb/97rSj58wL7uTIXa xGqmSV17jvQZdE1zuz9LiaU4I9FQi7moOBEA1ZJMaswBAAA= 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)(39450400003)(39400400002)(39850400002)(39410400002)(39840400002)(39860400002)(2980300002)(438002)(189002)(199003)(9170700003)(6666003)(47776003)(48376002)(6916009)(1076002)(2950100002)(50986999)(4326008)(77096006)(50466002)(2906002)(356003)(33646002)(305945005)(76176999)(8676002)(110136004)(106466001)(38730400002)(86362001)(189998001)(53936002)(50226002)(72206003)(478600001)(36756003)(5660300001)(5003940100001)(81166006)(8936002); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR04MB0368; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT043; 1:/yK5CbMOtGvR1H8OKUPW5kJZrD2mcWlDnpKPRQoysbBAUZUeldXqkK98yRmEl8ciWRc4NFbE/n9FseWr1ymQURMYBTpf4uTzT4uMsuNVIS2wjdM+64Lr6vTQWeZskLHHUERlZi/JXONmknyL81B4E6sQoIMoEquFgCA7JKjZy33wntonlM00VEW4g6gRBzAMjS4w0TqpnKL2RY7sAhhvBZSeinfRYoQiqkErgQLXgRX0fntXSCPwrujl5rel5rFn7NEUa7/ght4EWZECFr5AmhRATWjjsKYL1qEJJ1bw8oxhkzT1tvpKoP4BNwskaKLI7rDmdyCic6ROrTtfuIZjErmIHFVcZM8KyZU6s0FGoJ1ea1HdsL8COq7PE0Q3qM2ErVJsD6elQO1YXKPruNoHcpkjAkA4UzvZVZxNS8kTZMHsfLvg9zva29rUPRBly7ihVO4tZyv3fwqGAZVblPWIGl8FeT83ZgG7/tsjFKKSeL5bp1wylj4XOfIQzOnb7+IVnHmrH7QTx3bnYWzy8Jz/g/rfi8/j319mm6RQCK2Paz8= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR04MB0368: X-MS-Office365-Filtering-Correlation-Id: 96974413-a71b-45a5-0925-08d4a3c71e78 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:MWHPR04MB0368; X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0368; 3:rVQPQEIarE78DgSLkqOJ+ujmnUJo3HRKyIyxa4Fg732AcdvMu2km9xL4qKnAe5F75LAZKOsE+9AttSuK3sTRZeA+LDDuidpMwz9IALlljuUUkXXD20ShfdcBpcLuqY9a4BCjx+28lU9IcH55xZ7e+sRQ/NM2LzPW1k3m2woxy94C2dwEr6Ahfi1z+heYpW6sgyjRSrxdztHcu/QkyslbZzRy2h6hVY77zbV6EUlMN6X1c1C87Lx46oSnbN01zJBQxMCJO3+FTKTe5CK3EZECHApEteqYjNPXwKsfyWHECWAPcSR/7c/ibB8ci06WRDn9fFlTxPSHJlf+2YkeIv3J+9BzV7/dV07zicG91HFMZtjVadB0fcUIl3jPwXuU3G4b6/vrZH0nIjWLONF7MJEhvPPnQBCXCE1cJmNyLQyDXecHIJmYOqBHq4ikbxvNUI4DPeEp6tUXVSClhdYOWlERUnq7/hURVlT1fsuX4Thd++Ws2PHmhecPI7zPAuHGU9SX X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0368; 25:SZGqDzZnZTvuDljmW58Qo+ceQBndL438Y0GE5q65++iKPKbVPJP9MXLdWxq8z/PDYSJmieTQHQrvgsaI32rRKKAIWjoRo4fj+ypLbLSpzQ8BZFuf+LyEx1Y8kmc1CnsmPAWftBpw+ij3CTUCU3a+yEIoA7NPsRm7lrtQz6u5KyhlQ71Rmf4LgHKJVPb3gB4fUJNEfQjuT4AjY8TYqACsr2f/GqSVD3Be8KIEhVcbziCkM1G4RaJ88AcJ8ztYE3diQqIGGPJza4NE7cDXqKCtcaIqF/ep7uPm9/lLb9OX3HcOvHX1k8HGoiHGua4VBchy638VYr8BGOUnrR7hllF2+iAg0mALiptvV3IuFH6m8Ym6K9Ek4ILBcdNgqgY6insOOpp5YX0L+71Dda7JPASTxpIknPmmp9CW9/1IUFYrVK5Vqx0Zl4ydy2g79hhXLESWiYWYGPFfyjN0jCgFccnESBKiTs0kGy3WEHgb56WW+u4=; 31:Ir1Wjd8e09dL7U36mS4XaTwS3Ilbp9FPCq24qw55SvfE2/03N+v7IX/xq9v4I9hbJqcW4KjNBCiKw5NYfBD/b/6pu+KENtv17+65/ONOQQH4/UzSPjkGGK66aOzzlC55xwxwCX6W2UAQJpTDzSbm0nZn7+9hvljh6aUL46bc8U4TSLNF7cjv9kF5i+gXS9khkZDfZCRseFDA169pGsJa3W6BLVHSAMkO83gOyq6TdpKltgV7AjvKuXtEdkhFMqn26gy8K7riRv/BxXvH3Jep1A== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0368; 20:vCDnyGkZsuRAgrx4+Z0XohEntlAp4TRJO9pi0hmCtqF29ckdA6Un/WAz3x6uN+kN7v77EA9s7CRC7V/ZnW6lgMVD9zmws0GZoKz5opmbfCyQNW35wRVwtIXpSBoRqlW30IqAUFMiYOfaU+Xy5VzkDHqBf+KaX+FsFG7FxO7cdMu9QwsHpFYD6TbXo7kFvGHyfwdltHk1VN110504L7eVhCtnCWjJUX6YYPvf+kRYArBWqXXbMd+HMvBFI0Tk60j6134TMv2SufXQ8R/NjDoB/JNDOEi+dTW0WmKYnwZPjOuVm4V5kVNIzb75T9S9dDTaTctrjleWnz4aZw8BWvRzXhMh31HiBg+TAyV3EtUel4jeJVdTVPqjbDo15AimKB5Cvo4cgJppgYGddCmpTbCCcHI3yNHx+Bdc7S5c7oRB9qPEChR/9rFuK/LgOw7p/pAN6e+rMd+gSqrIklYPKi46uK0NhtLXBA34ApLY3fe6dvVL8H3CH1R4VY3oE8goLlRY 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)(201703061406153)(20161123558100)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(6072148); SRVR:MWHPR04MB0368; BCL:0; PCL:0; RULEID:; SRVR:MWHPR04MB0368; X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0368; 4:TNLGfy7nVqppF7tTeguYVpPZrZI5pRqpwYon6y+0kuaxPMx9l6SO7/czSlTsnKOnNpPPcwTog5EpB+XndYPy39jGp8xoRYFuiJWwxfo/EMZPexmM588JJBW8W7ewghJrEorS8rgrOYi/aXcYdbghh8pkGCuPFxrQyEGqRravKeZIerHS6hzh2QEIWY/MKvfCa8ksfv5cV/HukppUyNHoHCbQC/Ry5MNVM5ImncRVYqt2C1HPMjsEwaYqNrJ91skqHU/EEelfmq4haochhZEvxz0WsBimkTsBVjflbulvAg+QmSHQCa11iVzGGoz7ei8qTQd4SCTWRc9Qbw6XVGNL8nFpAypoZcXxDQ/O3xSZyaPNenbAFzQK2Pdc8d0ILb553cz8oWHbJ3ABSz1S3a3azBqtypz74dnosuH3ty32jemAELWdzl+WOEF1Fv93zyILo9m8TlXCIFko3icMw7W+KwYxC/cfwtEoYoKKbtbOTFRnGcz1rWGk+X5tAVKqEXA3NPwBZ13GCNUOvDyZDejDCMVPJLQ5IgF9T/n1SHz7wbveoi9YWJ63X5IL92F0b8uo/NKZXxLnzpsUWZirwAHiHx1LucX2a6hGaPka4MI2HXLTL15J2SEQOX9B9fWee7fUtROlkSMqjz37k0wZhdlKMxVsC7XG8Nf7tClJdfHcCipUNQZHMIDb1HdiqL10vTQ4T8Xh+GwV+0jkGZq4RQBrmOMbH7H4+D7kb/XtJz+2R5KQ1Lptbqa86vbFQUmOAp/JhvEDD/nQ55ii6k0sCmHlNCDstleLxmSYLVlHU+AuvGGbNKJOcKb+RoQYVe5Grq4PYuX+XCL+qFZIqag/VC87ndl20n12U9LIYa3fc6xEcdIbGYB4yrFJeWcZS+qfPp/IyB/qOaiMZqGBbzh4hRTcksrwaBlcr55oOM2bPmnlxT k= X-Forefront-PRVS: 0318501FAE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR04MB0368; 23:pO/yRfknB2g1zTssiqCnb+Q8Srh8UX3bK+1ALVYM+?= =?us-ascii?Q?7vHtiCHrWFx+oSvuQzb2G+O5cqSeS+FNAMfpA1io1aRqxTu2CgmJkiYhoHfq?= =?us-ascii?Q?ea1dTVVmELBwtkMwGhwdS1U+rnAfpkBqIIBYdx+POrjAxrfDVpWQmp2PqpQJ?= =?us-ascii?Q?XTK+lSPiLNbWtA4CMdp/Ch8Cf02v32dsaaPCiDwU/axRkMlWeX9Ajs2pvKX1?= =?us-ascii?Q?+wqTJis26RTRAJVWydLsLmFAgmYwIJngJxVkpn33JllPg+mrq6tAJQEe1Lbl?= =?us-ascii?Q?pifcQeBV5z90JprMjSairiIGXikZEtn2+x2gB+GLtPIKQd9s+IBQumPpOt0Q?= =?us-ascii?Q?8DaOYl92X1lUoje6q/GhsGF6+Hfp6YQnjKA9TxfsK0mMfq8ZT1pZnrkVSk5V?= =?us-ascii?Q?KRtFUN30a0XAN4qdNYyH+ffV4JSMQprGjxojQqRLeVO033UdpDuMl8R8LwJ6?= =?us-ascii?Q?FcoPsGLQOUBSFmD4Y4yPyl9sHp/dh2HeeIR2Zc6ReuqyOcZzudUTerve4H2M?= =?us-ascii?Q?aoh7Jag8aybyynM+2LAAkwITrqSGmUqIcZXScRHPrKUk2ojBB4jdeZ5bvRQA?= =?us-ascii?Q?Q500u0/sDprgQaWB+Ey2Pd5ZAI5XHLTsV98MtlqplYFqzvhcB/P3duJKOHKy?= =?us-ascii?Q?qZiDOANJua1aOh79xLKNDG/yc2yXKL1R6wFBxjKjnUihIHNQVibu8PWGpXIP?= =?us-ascii?Q?XoEz35d/WfrpKPrT+kzOd7lcFDKG0n2DdP/1e8NPzTClOoqlnzGo9zdZMcVm?= =?us-ascii?Q?r4+/nNSdw6jHgut36iiN4D4xMCqR/8gL3lzOfq8t51UFMWfWmemA/ZmTY7k9?= =?us-ascii?Q?+PSCZ521kiuK0b1wMY+J6ZiI4+akV6NC/hp4TRNpxF2BpGeMJSDMmcYv0JiZ?= =?us-ascii?Q?8D5tEDXPCUfllOLz0yq+mgt5aqJznA1hJFmz0h2SMGZ6oJxb1GmuA5pTlEEu?= =?us-ascii?Q?fSG8wYdcYqgh3slfWoLtpZzjWzt/IAiD4h1M5Ughcr/4f/l0bup0/L3cqPqT?= =?us-ascii?Q?vdWZB+xFin4BsX1cAFdESp6VAXnM2ESogPxG8fuLo/LBf9VE7BL7Pl58VyuO?= =?us-ascii?Q?TWSQqdVzSsjvLgcjVPqNjYtrgTQ?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0368; 6:ovRAXxIccFiwKM+WzdXyonsh9eXydRWgsQc6fApWNAStNTd7hg+m0ILsnJ4vxU1kEUEfsK0eceOLDZNSxLOB1xtXDz8uNqaj1o4nvXul826DmAg2hfTiHgXYOl/pnnkoV1tzhrUSvnoVv/v5O1SsUpz54gLFxRO1gtbuL3AgVbsX5hyZpUu6lg5n6Go80dUdAdJe7EemOGLHwAhWw6KYWf0Wogaq+bvuiUfWn4so5Vsdi9/uehd5d2ffulHHA+LXXDDfnIfstfdE7v8kzex5uKX75LptSekNhA944IZtmKttXndtXoj6ZNTf+nxn0VI8YTVQCD5QJz2NdWMfW3mxTVYd5bjUnGIUsM+wC9N4TmUD5kuT0UfeBbyL0ECR1IEzfd5l39g4k6sl8rbSKwvc/LG3upUPEyEKLlf2E9ytE7TXyUekX7/00iavk303bUDQjc7InV1a+1qCywvohfnwdbLGt/GOGQvYpdSzfCpPD4OPwEp7ezax2xenQK3Dq4KPs4xo7DJOTdxQ+oH57XZ/vitFoTfO8jj3QB0HZZYoje8=; 5:+TGGkRiT+Qw6hOQpPzN8W9JA/nsA9uQFXLJGn7C+O7ySdj64zA6OeYxKPyqBbfE4be6/NfsRNdDKta4gm9tGF0OqzdF8JmAGBNU9s3dEZk7habVPDdDZCk6MQOGEHyqChkv/TZjsYS8PvEI/gfpwgA==; 24:O7YPQC/5INQ3pUndhSsNOS+iYkYZIyf/sH8UKTiQboNNNOlIWp1qXxO0vxyztNbETB04thftubNRdh/j+N0471YY7iCkiQOgK6IRq5IIhf0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0368; 7:Rqjsg7iXf/s6wC/czeLaA5hZGRkUouBLcdjs9PxIddbDqL97wKl0H7y3ErVjKOVDpLDdZIUnwVVY8BKhPcpKOieti0vnb98ZHBcfiFSx7fXN/xOzxHCarzCzHxKEe86BNP7AN2AVMvB2lHwXx9lkkXh5oLJzoPfaaDcKHNRF+TvIQLTw1tO8/Jd6r2xxPtAawZwsnhsScQQ/eMdM/bG3WgeQ9pSETeSmq1DxHlXet9M/L1nYLouUIri36FeKhol5ZdD3CpD5AHA0B2M/NgUj3OSlFNJfWIEqNS+X6VmSgjGU3ep+d3LLpGIRREwbEF6T/vS3oQ2fiswrcQiKtg8+ww==; 20:oJtwXpO6kFZV0CTza0SCXGWSsRIeuLgrxv0QsDgjyZTiTh/AFCdyiCfzgW1MHXiwkwlIRywCC1Wcz4FvlBWYNyQmwdO6psnPJEAydOEUReMLNafpaK4GPVODLbHciPFvwzK6nyuzoDiSE+vkScFWM/bBl9vT5970vt3keAFYE3I= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2017 23:38:16.7335 (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: MWHPR04MB0368 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 Requests that got stuck in a block driver are neither on blk_mq_ctx.rq_list nor on any hw dispatch queue. Make these visible in debugfs through the "busy" attribute. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Omar Sandoval Cc: Ming Lei --- block/blk-mq-debugfs.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 8b06a12c1461..70a2b955afee 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -370,6 +370,30 @@ static const struct seq_operations hctx_dispatch_seq_ops = { .show = blk_mq_debugfs_rq_show, }; +struct show_busy_ctx { + struct seq_file *m; + struct blk_mq_hw_ctx *hctx; +}; + +static void hctx_show_busy(struct request *rq, void *data, bool reserved) +{ + const struct show_busy_ctx *ctx = data; + + if (blk_mq_map_queue(rq->q, rq->mq_ctx->cpu) == ctx->hctx && + test_bit(REQ_ATOM_STARTED, &rq->atomic_flags)) + blk_mq_debugfs_rq_show(ctx->m, &rq->queuelist); +} + +static int hctx_busy_show(void *data, struct seq_file *m) +{ + struct blk_mq_hw_ctx *hctx = data; + struct show_busy_ctx ctx = { .m = m, .hctx = hctx }; + + blk_mq_tagset_busy_iter(hctx->queue->tag_set, hctx_show_busy, &ctx); + + return 0; +} + static int hctx_ctx_map_show(void *data, struct seq_file *m) { struct blk_mq_hw_ctx *hctx = data; @@ -705,6 +729,7 @@ static const struct blk_mq_debugfs_attr blk_mq_debugfs_hctx_attrs[] = { {"state", 0400, hctx_state_show}, {"flags", 0400, hctx_flags_show}, {"dispatch", 0400, .seq_ops = &hctx_dispatch_seq_ops}, + {"busy", 0400, hctx_busy_show}, {"ctx_map", 0400, hctx_ctx_map_show}, {"tags", 0400, hctx_tags_show}, {"tags_bitmap", 0400, hctx_tags_bitmap_show},