From patchwork Thu Jun 1 15:55:12 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: 9760015 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 6AEFE60390 for ; Thu, 1 Jun 2017 15:55:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5CB3C284F8 for ; Thu, 1 Jun 2017 15:55:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 51206284FE; Thu, 1 Jun 2017 15:55:32 +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 B35BE284F9 for ; Thu, 1 Jun 2017 15:55:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751731AbdFAPz1 (ORCPT ); Thu, 1 Jun 2017 11:55:27 -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 S1751138AbdFAPzW (ORCPT ); Thu, 1 Jun 2017 11:55:22 -0400 X-IronPort-AV: E=Sophos;i="5.39,280,1493654400"; d="scan'208";a="23292701" Received: from mail-co1nam03lp0018.outbound.protection.outlook.com (HELO NAM03-CO1-obe.outbound.protection.outlook.com) ([216.32.181.18]) by ob1.hgst.iphmx.com with ESMTP; 01 Jun 2017 23:55:20 +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=XAe28+cDAez6SjURqc2IAh0YRzpwlnFGBkhfP4qh1qI=; b=EuAWLhIikijW+10PhE434WQhSMmFPgJJerw51ort37it2sZiuNzry15ylb9ePHnQ8xjWFl83ifR1PaMHSWYnv+mHkkRS4iaLMeQvS666ZNozdlv3B9G+8gBc4kdPvYYMW8WzuYVK8wj4ixFR5L9KHuOBR5PpiVtnRK4XKk0EJmE= Received: from MWHPR04CA0049.namprd04.prod.outlook.com (10.173.46.11) by MWHPR04MB0398.namprd04.prod.outlook.com (10.173.48.15) 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:17 +0000 Received: from SN1NAM04FT063.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::207) by MWHPR04CA0049.outlook.office365.com (2603:10b6:300:6c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10 via Frontend Transport; Thu, 1 Jun 2017 15:55:17 +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 SN1NAM04FT063.mail.protection.outlook.com (10.152.89.83) 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: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 7F.74.38445.4E830395; Thu, 1 Jun 2017 08:55:16 -0700 (PDT) Received: from milsmgip11.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; Thu, 1 Jun 2017 08:55:14 -0700 X-AuditID: 0ac94371-422569800000962d-36-593038e4622d Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 95.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" , Hannes Reinecke , "Omar Sandoval" , Ming Lei , Eduardo Valentin Subject: [PATCH v3 3/4] blk-mq-debugfs: Show busy requests Date: Thu, 1 Jun 2017 08:55:12 -0700 Message-ID: <20170601155513.26712-4-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+NgFvrMLMWRmVeSWpSXmKPExsXCddJ5ke4TC4NIg53PRS1W3+1ns1hyfzmj xYI3e9ksVq4+ymSx95a2xaHJzUwWh+9dZXFg91hxoYvVY2LzO3aPy2dLPXbfbGDzeL/vKpvH +i1XWTw+b5ILYI/isklJzcksSy3St0vgyrjysKKgUbDi7NkmxgbGWXxdjJwcEgImEssOTGfp YuTiEBJYyiSx7MQdZghnO6PE5KlvmWGqtu75wwiR2Mwo8XruXkaQBJuAkcS39zNZQGwRAQWJ nt8r2UCKmAX+MEocfXKRCSQhLGAl8en/ZrAGFgEViSefj4PZvAL2EnO+LmaF2CAvcXbLTrBt nAIOEhuOTwOrEQKqafv3CewkCYFNrB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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)(39400400002)(39860400002)(39840400002)(39450400003)(39850400002)(2980300002)(438002)(199003)(189002)(9170700003)(38730400002)(305945005)(36756003)(2906002)(86362001)(189998001)(478600001)(48376002)(356003)(1076002)(50466002)(5660300001)(47776003)(50226002)(8676002)(76176999)(33646002)(81166006)(77096006)(50986999)(8936002)(4326008)(230783001)(72206003)(2950100002)(110136004)(6916009)(53936002)(5003940100001)(106466001)(54906002); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR04MB0398; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT063; 1:WWpxDi3Hflsu8jM31D1Lj6tY4e97tdaNwT4P1PDQEM/kDU1J9UvGjTAUJl5fcMyff8Q5HIDBLBUd+Sb6tFieXyXsEewJ0Zb50pS3R5hPO5IIkT/EMnYfWn/P35tBGY8KuXPAmEBXdzdW6VHk+fO1+RLvwUvbSN8zCGHZTLKyNPy4tPEMJxlee7hl/4dxO3v0ft/yA4H11wiKzKFKPRxkAXaQaBT5aR7TgOrEX7djMRM43A3KwYbB0lM6kjmigGFzzRSR2aqRyDQaXHgBucnNnwE7YmTY5fsx904gK07k6dKwELosN/vzLAAhRXKA4sv82e4ZC9d6e2DvLT2DC0XHPmekibnPnzHjSTaNsO96l0+AZv5GvjkYaaKTYYsZgjTib/UuSnFqHFMV4yR++jfo8s9JilD2Nuwv6MYWAUBMF4mPqpT2tvM1PmTOijsEzBDHAW4k1Mo5BzbwJr927K/8gMe1K40LYU22hE4m46k4UHRInJrTr4R1hCdC3dZJaxia0CUGvtUPo47QeONtwC5jfMy6JYGZcTCUaMhS3sEBlP/e4RHZbMRKa7mCYsztT3irSzaxYz7cLMkLneRXb52C3A== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR04MB0398: X-MS-Office365-Filtering-Correlation-Id: 22c024bc-9929-4a8a-cd48-08d4a906992d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:MWHPR04MB0398; X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0398; 3:OcU7U4lP4uDLBni6lUQFNqxZAtLopCPFK1a6LJuXV+qYOL7gug5416QJ/YmbF0VI9uyhvgZ8PyCQ8zb/JE0E63rKHDpTOdtwMTu0BRe/GpemeALGeMjteK/Qz2/BfLRNLSHt5KRbpE+tEbxD/rBxAkYSm1f90r6Zx4CC1lse0cb11qd+1qdubnZDqJZDG2C9eSlJvVrxoirtorckjdwJKe8eut6vDWz+UnJyRGBHmasuOd7AFd/IIgVknEQM2R78/7iyLkrq6nbvh8BtenMcTl8PM051saWyjzVTRAj4G4pynPomgwaqVQiah/SNM3Kj7Qq1VNzvXas7TaB2awiSHxiRwMysV3r8XP+Li3gezjnuJJ/0CWJckRTzjkEjPhYMoHf/WZS+FO1yxZnPVc1cdUKc66fh24DYafYeyX95UhL04UGZ3uGOMytzUMawr6jt2OGl66kc/9Lb27pGVjEMcOsc6owW04vIpXrlBp9Yz0zUXVL0zNEgFoE0R5QdIg/D X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0398; 25:WDDJPvVeoUM0/xmSsYv2UD1FRWZkuF3/kzOMEqrBK/OHlyydZtKsBZgFLVj7R68BfNzu07jOKRdavD5f+rw63ujD6QdM5A00WGbl8dM8PQIrKX71N08hNB9X00GHRNO7vq5s6rDvkrKCHtF2FdmHwXiI03cXdkdArQRgjcTAx9DKYgqC0FOnOqUKTub9Y1Tk2tz5qGrDQLKMA0H+pYM/JuaAsttxS95It/edETdm8Yq8QnRnOeFxEsfzCT0ssIC24sqd45ZuRsAA40JsWz0k9OSpbGUwsXT6Vd4aC77C3WEohCJoAhjO0qLQ8BRmat9NzA+LIJxpIWk61MdFivnwCr2bab96XYIlGbKKGP+Y32CY6cEQsksyWel/G2r0EcED4hoi1ZKrRWnqMT2mZQJNC4sfnyPuqbrIi7EmeacXSGYvP8oKeE7l15uW7tZwDq3h7IJduI6/ek6eoiIf1cS4iUryMUbH56kqSbQ26/dHeP8=; 31:4OGLziobaIDycAbHKOp/VM2tZKAaAkhyBr4sarwMG8a0TdhzaRJgl2kQN8xwh1hLT/Z+k0LL09nJCXTNaK42BKyUc8WStllpAGJah1B1NIYxmCZXMHlIfubwZtDQ1mVB1Lf0adjOi9dDs5ZmyBavpkJFvJokPJ4x4Yy19cPoxry9koLg2RfvpL43YUo0nJbIkhwhn3N+u55rx9R6qb7sykyXSpTwjVjFvYgA+ZNg1I4Nbc6suj8ZtqSJUVWHvpRDlStmegzOYhyPWpznMxUXmQ== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0398; 20:L1beZOJIMfkmGYp+DN8ocuqdPKTKnqFXhEi6wAbi7084LsX4DgNP/rZ6t6UPDixYjE5MxzB169EvHv7WXzzXEobMVwqJ92mAY963qDLtyDZh7E7wBMENlbhmdalPXoPP4tyYx+2vt32JNXR5WRh012cnhcrBjUZDqBzLDuvAtswrA4QbuTs/XMbt9RNPrPDfyx32dFo196+faSQz8uzmH4Lnghd4zmV3bOYdpZDp4pMsej5zWQ5Oulrdgq4MXgIgJjxTiJmxj1mxHPzaI81TFLi2bbH2GboafYvIwD9uEk0o0NvSpAbOYb95tZ+T3mGAwX5KaegZhPldf/Tu2tQZuEKl94j9Z0LJZ1J1Bj06mWvrzaLGd7/uc6Gcx9ywr7xY+06IN35HhvlpaVlqkZBrJ9wKeL8G7PDAQWfFfZgP0V7XA3bhhFe+weZ3rZuXtL2qNTrT53U2uEXzgegnek6+faQQnwUgtsp2BL0+bsthcoP7vJJY/X5sW95bcx1DQef4 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(47284530071512)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(13016025)(13018025)(5005006)(3002001)(100000703101)(100105400095)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR04MB0398; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR04MB0398; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR04MB0398; 4:wzU0SkuYa31rPW+GbRJjwVNB6OgPAlI/cSrSp4Uykx?= =?us-ascii?Q?xSfS+/PrKeJFUZRvPkb6PbDicy6+ydXQgXLyBTXlZBV5MoU8TTjPGJIHR/dw?= =?us-ascii?Q?6I3xby8dBgMCmjyZRD/RidwbvguukgRHFYIfBuelkDWR8Aahu0e9H+lAx+uY?= =?us-ascii?Q?7keERcG+9gbTswBCRddrST0m6C3SFnhgjUkIFbIGMlgRxz5brXnZsusP0m7b?= =?us-ascii?Q?LrD41/vj3k74X6/DXehnKT+LO3sKivF6Gzx1+SMv3V4LbQ+A7YgAZMQ4TcLI?= =?us-ascii?Q?pNPXx2MRfodmRT15EZzPKy2p/9+aJ8QYaZfVhDfBTK2FC04MDSLUNwFYYx2L?= =?us-ascii?Q?FBpVlbpJ9urTjujxDtwuus+YxQukqL1CgLS6GifgDPPqediDCdak7Hf1OdCK?= =?us-ascii?Q?UwwhLUOAEiXCnLyJuDxPl4lxZnJMwTlxNHvvT1rQ4HUw4phyIKipuyh0cG2t?= =?us-ascii?Q?u4c/IZ/E+mPviH9sEIucDPDLajsuyL+FEGISjcw5u1OW+UQTy5ZAuk0XInW7?= =?us-ascii?Q?g9KdkX2kGP6UVr1uXw8YtEVvTTErDdwLZVk3CCDrru8xjos5OpB69LoPV4EX?= =?us-ascii?Q?gq61HhqsHDWUhs8KZ1km3GdrHMqIe4DFqqRvpxmDs19lsgx7t71yCZxmTC9Z?= =?us-ascii?Q?z6On1YFQdQy0xiHLgnvgNDgtqudQf5JoJxJFVP7TLFUo9JU0wXPVIbwjGuIw?= =?us-ascii?Q?l1aajYTIac93Pi4KroqMI4TeCgo06wiw26JoZkdqBFfPaCW7zkNcZzxEeHbT?= =?us-ascii?Q?4bx/8nA2BLT+54vkjHG/s3mSJKZqtyx6zg1rMKw89+mhv5cPwV3hEJHQa4FB?= =?us-ascii?Q?jjvUqG8Cwocy4DxrtxaiNeRUKXFYws9ZEj2rwr27sdymafakeX3H62VA/Jby?= =?us-ascii?Q?8l6OOWDTZHiif3uPkTJ/+aLw/2qi6wYo/Y0oU2gMOyYIBt3ic+DgmwKtGQuU?= =?us-ascii?Q?shCZSECxrovS67sRKr02dDinifeMvn0ruTm/SA82ecR6gYmNUt1Z8veBKCCV?= =?us-ascii?Q?dMq2WByGRJOIr1K09f3VOO0bcuppqOW6e8a09vxOMZNWS3VNR1kVdc0a4979?= =?us-ascii?Q?EZMknVkerMw5b2mJJYMMybM7CTBqPJ9jfGCGQFZx+X5tPr1l4et/+fD9I2FQ?= =?us-ascii?Q?vKEhVa/dHFYK7tSiXBjDOqczmot+GNhyZOrSsQx8iXJ58frW+RPgdD/TfY7Q?= =?us-ascii?Q?PmYY9TPoMk4R6aW9rauJ1d0SMAp8o1H62vhKENU5NjnTus6uMIY/Srxs7A4U?= =?us-ascii?Q?GhI1p/apLN0wQWv2S/qMd2XileJIZIakH35egOAZOMq6kMk12Gr+9+3K7vuH?= =?us-ascii?Q?A5Hxl8H+0DHJzyFjhYoZc=3D?= X-Forefront-PRVS: 0325F6C77B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR04MB0398; 23:b1BMbA7oW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DL8y3cwDTPgb8LdrCepFODaNukn5l+kWtp0lfi8oZa+o1raYxkZfXF0yluCE4gOae8xgiU7ZRRh81qo5a1wpFIe0e8YYbKSIKSgFhuuk3JmvtRzwcbYGd5JZSGLcqG+jB7aSuqKhB1CY1nw7dxnD6IpGvxnXXsdMaFVEMS44qGb+66SV8bZvSEU5FNzVTvYm2ABZTFLhjCiriLyjxiFntiZ8+pmBKySG2Mxh5nYuVIM4QIvvLKtpZt1OFdi33TTZzdVePsJIiLN/XxwbLuIUwkdqmLkhdmH4lmGWmYPvK2nbHxdDN4upzoV7; 24:YH8U6OK2yujHo5f0Zti9Edq6znHYaIvV+nWEzEYh4xpql3Y+CXWN0w6OQilnf+92QR9LvD1yZRoqegDmtMgZ6pArjICVbtxXWMRXTwo+nFM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0398; 7:cAi1t3IMdId5WEorKCsZymcoMs+GE/iT3plpsoPBCnRmrH4zYdYDSP4i4w1qtVJizCYGjDHNUv2DPcWWcyU9FdZyQDW6f16bFIwMAfY9Hje6nPqFJUts5sgdabcvb/AAIfOpC7NkK4IfQiQGoCYl3pZx8DAsxcu+dhgCRIdEXzU9xmgUsV+JQgSKMk8vSgb+400TBH0oXjVdFpB+ovsEn+4Z6qwvHOrziy0sS8AzteznpfVVrTtL4JCTlhkEC4maB32oYsN73bDbySI55gNp28VOIPym7pguMRUl3x6sbeHqrSZHLp+0iJ2SI306PihCXGzNdNPYwr9kpgtI7FGnJA==; 20:11+7Y6a9Rb9Q5pKP6f/7cyRimZ2ibPijLJcaY4PpTfhx1imtE0WpGcjrX/idJHmQxFPhcddDOhCdhH8nocqjYlr9WRidwpiQQIECMTJ2H/sHoV772voqVRO8Q6+dWLlOkRfby1dAO8p4i/7kObW5e/VLDp6WAD4z03VfEj/Q8Xc= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2017 15:55:16.4646 (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: MWHPR04MB0398 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 Cc: Eduardo Valentin Reviewed-by: Ming Lei --- block/blk-mq-debugfs.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 8b06a12c1461..90c454bbaf92 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -370,6 +370,36 @@ static const struct seq_operations hctx_dispatch_seq_ops = { .show = blk_mq_debugfs_rq_show, }; +struct show_busy_params { + struct seq_file *m; + struct blk_mq_hw_ctx *hctx; +}; + +/* + * Note: the state of a request may change while this function is in progress, + * e.g. due to a concurrent blk_mq_finish_request() call. + */ +static void hctx_show_busy_rq(struct request *rq, void *data, bool reserved) +{ + const struct show_busy_params *params = data; + + if (blk_mq_map_queue(rq->q, rq->mq_ctx->cpu) == params->hctx && + test_bit(REQ_ATOM_STARTED, &rq->atomic_flags)) + __blk_mq_debugfs_rq_show(params->m, + list_entry_rq(&rq->queuelist)); +} + +static int hctx_busy_show(void *data, struct seq_file *m) +{ + struct blk_mq_hw_ctx *hctx = data; + struct show_busy_params params = { .m = m, .hctx = hctx }; + + blk_mq_tagset_busy_iter(hctx->queue->tag_set, hctx_show_busy_rq, + ¶ms); + + return 0; +} + static int hctx_ctx_map_show(void *data, struct seq_file *m) { struct blk_mq_hw_ctx *hctx = data; @@ -705,6 +735,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},