From patchwork Wed May 31 21:30:49 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: 9758189 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 99AA660360 for ; Wed, 31 May 2017 21:31:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C14E284C8 for ; Wed, 31 May 2017 21:31:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80B2D284DC; Wed, 31 May 2017 21:31:09 +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 435B6284C8 for ; Wed, 31 May 2017 21:31:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751056AbdEaVbE (ORCPT ); Wed, 31 May 2017 17:31:04 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:27306 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751037AbdEaVbD (ORCPT ); Wed, 31 May 2017 17:31:03 -0400 X-IronPort-AV: E=Sophos;i="5.39,276,1493654400"; d="scan'208";a="21772101" Received: from mail-bn3nam01lp0184.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.184]) by ob1.hgst.iphmx.com with ESMTP; 01 Jun 2017 05:31:01 +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=MELOsMZ4gCON+JzgPy96POT8KAB5Q7qtrmhETvBo2R4=; b=AfK6hR4E0q06JvwTr8DpTcr90OesyBv9TVAA5IwZWFYJXQ02WfpiNmY73Krbv/tvT4yOZGGnvcjdWJAIwd33dYFbHsVJ4WG6X5f1nXDgpUV12qRQ+jHGstfRmLHG3UgHqOj5mjTKtZQlfCHLHOwJRw95rxlYtuzXe1gMD12zE34= Received: from BN3PR0401CA0028.namprd04.prod.outlook.com (10.162.159.166) by DM5PR04MB0397.namprd04.prod.outlook.com (10.173.169.18) 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:30:59 +0000 Received: from SN1NAM04FT008.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::202) by BN3PR0401CA0028.outlook.office365.com (2a01:111:e400:51d1::38) 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:30:58 +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 SN1NAM04FT008.mail.protection.outlook.com (10.152.88.143) 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:57 +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 42.C1.51736.0163F295; Wed, 31 May 2017 14:30:56 -0700 (PDT) Received: from milsmgip12.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; Wed, 31 May 2017 14:30:53 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-3b-592f3610cf81 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 35.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" , Hannes Reinecke , "Omar Sandoval" , Ming Lei Subject: [PATCH v2 3/4] blk-mq-debugfs: Show busy requests Date: Wed, 31 May 2017 14:30:49 -0700 Message-ID: <20170531213050.30276-4-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+NgFnrOLMWRmVeSWpSXmKPExsXCddJ5ka6AmX6kwfZnghar7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugSuj6fFxloJ1/BX/5vexNDB+5Oli5OSQEDCRuNx0lhHEFhJYyiSx72hc FyMXkL2DUWL19eNMMEWr755nh0hsZpTYu+0FWAebgJHEt/czWUBsEQEFiZ7fK9lAipgFrjBK rL38nQ0kISxgJbHuyBFmEJtFQFXi7dU5YM28AvYSR0+9ZoTYIC9xdstOoBoODk4BB4kDS/lA TCGgkpkzjUFGSggsYpV4dGEXM0SroMTJmU/A9jILSEgcfPGCGeIDdYm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-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39850400002)(39410400002)(39400400002)(39860400002)(39840400002)(39450400003)(2980300002)(438002)(9170700003)(33646002)(189998001)(36756003)(50986999)(2906002)(106466001)(1076002)(72206003)(5660300001)(77096006)(76176999)(478600001)(4326008)(54906002)(305945005)(2950100002)(6666003)(230783001)(81166006)(8676002)(8936002)(356003)(38730400002)(110136004)(53936002)(50226002)(6916009)(47776003)(5003940100001)(50466002)(86362001)(575784001)(48376002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR04MB0397; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT008; 1:bE75p8P5mDK8fpxWQm9RAMuyOXQrz9zao1tzy3lm0e3X26DC5XFVvYwlfGLKyIa6Efa1+Wxld0mK+2yILaJFUJUN9fSTs4HDAtaGza49k8MxnMTJdEgoWknVP5FvW25/Jpv49c6iDSmJLA10buTiZYqH8O/0y0vSC9/DFrRfbZWHClO1tq/gsQNV4xVQhGttt6hAF3G9T5mSQ8+gdxE6CIFf9AlScr6hvk+bykz/fFWhHYbsTQzI/B1byZZJBiLJOTEadczeAty4HasTxQaw9b0kbXrtzW3SGCWtIySTn+4VLch+KH+WzmMiBD8BfhJgiWrUXduXutwlbk+KMAx7jFLQaTnRwcHER0R+UfWmaQn0awhSkXFF0ZfsVszAsWFoB0czPfPxjn+v3NEReO+r2h78vtXrUT0XBM/TvKHMlP6yzO7GRF6ivOQvEYGivBJJUOm4tw3kL6Voxe0UMMGcF5Ft/mfGZQzX/aByUBAvdWpGr4vGJ3zqoUqR42qXyx7L/ySpLGMKVgH8Al90OyV+Eqq+ATffeaeGXyWPcGfHFEQp6Ja9TSXVn3Uqz9S85ybg X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR04MB0397: X-MS-Office365-Filtering-Correlation-Id: 004d340a-6605-4263-e34e-08d4a86c5440 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5PR04MB0397; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0397; 3:onahKBr12GrThTqcCDo2ex/2Yh3XjQAKJaU2JAqIO6GHYu4c9RooqPEVeuZJd3KYcuZEXLGACbtyiLmqECLIUR+N3/KR/2o0gZi+mBFj4FYmMPFSTHP5Qm9s38rT6UR8TIhoX5CLcuwuRSEyiPSQiHLVuIdQ3jcVb2e2ZO5heSBwCuLbA4NRaG9iwt2OC9A7Vo2M94X0vgsf0UVXMSRf8YYlwP7MVCYd/N/br+uErqNcS2CXfbO3nYSaFgWKJ8l7Msbj2j8Y/Y6Rxa6BTBhsLwTsw7DgXaqCWy16ZLw6HENKtfOOpWY/4n5Vf5cOEB2o8Ok9wtjvJPLCxpvX++DMQpk/jVmHGuPanRbV+nJ01YrtczQ+3QaeUjg1MH7+iK5qAmMDiya267J7WBGD09v8JAcMiZ0JGHdWOt4/YgyU/BU1slYu/kvwoftUjUMxdYeWHxsv4rLArVjna8h8vELQhJMNJ3e7JlsC1lpHhrgC0b35qUeYQbOwi55rFlzW001t X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0397; 25:gz9uBm4S04oLwGgC6gFBlS6vWujduTdNvZKYyK98JlmFt/CztBZei88qnad/v4Cl5MU9IJegvcVrdh5cJMKqVUgemwo9RzMVLpiKb0RWNDBlEriEFjkJp+kNCCwMqaTOPA7ioWQBUlYg8+QUrab2NpYDfSiUK3pK73CcWQdw819NYVnfJy4R4EKqIcUzdlXR6gCaibTgzzRpEud/bcPGf0Mn5Svw6iWYJrUAg3c8unRbDPfYq9lIJidjo4v1ssOQ/nc6E84JouTWAoljRNPU9OaadG7S32tjN67lFJd0hH2QNvAzs0nwycuIG6oCNgPDHJrgWZn/Wb9CAntkfmN5NEDT2LBUdy3pmw/cBmTSSMXAj12Ddq43cFj0gywWd9TXDdQ43ZRgqeXBu1ONlRs0pBWjQfMkVOGqtGZssNYdYqIYhzibboIxOOOMWpHLH8WaGsdFNL4Vni3K/S+Xe9MkXQtSUMdQIJfjKNCYCYtDLmQ=; 31:8yv5axpmBYs58mQUvYBViUCWtdLDooGjLzB3NYQRgPohplP8VIdakIdiNOy5spd+dRBbKtNoswxBd7CeUQTi1syCrCH/E+q82YegHd4I87qM33FZQRDF+/B9yTRhOYps8C6SiqFlCERbgHEN6339rD9tJFk5gPy6jsym1ePr86q6XqDMDJmoGl8bYfoVTTrKLKnFqxn1a14evOLsJAO3ojFSwmRpxOxBYnRtISwK3k3ZFQB3ZxKLHNpU+oO3+L4IwRiCV3aqVvD0eooEDxP1tg== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0397; 20:sGvucTPh7nspdp96OIGc1m50oTV6ZWS5RAdbFRcdmaw2D9iSmlwB9Tm2BdR/0D15I+OMrQW/T+CyMhrDh2L8RwEVNXKgjLTPJPPh9k/fMBKKuagvDmsYhm63UzWPQ0IzGaJE2gnvRfibfU7Dd5lrjElntLiITho6D7eMMpMVx1qP6Bmgrd2bg6ixR1caEvJnlT+g4n+iwTnNKhrEiqUDmprkxfIt3huHjZim0XhgI7v/EyeUUeYGArDEzOzSfTev9/7rdya6JydJ18xY2O/wOXcYkqwJZ4Alvf0g72cvWkBI9+mJxgp5dvV+sztKFwA0+2RqGh7GT4zSD8HrKN0Sb5ozQ8GoI4PWY/r/MUVAqxkZv01tOVdPOQJ5BDyV/X/8yqsGPygjuXDbJ/OSNE8XLd8SJ5eyQaktI62b5gAB9LG2l+KL3l0pMEPCYPzu9jqpN3Nfqj+8hL9E6F0pCBkJ5/+saKgp3WurpIrOB+Brd0FAbHpJYpcycfKuJNVGNtYb 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)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(6072148); SRVR:DM5PR04MB0397; BCL:0; PCL:0; RULEID:; SRVR:DM5PR04MB0397; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0397; 4:JzdL3E+Rm8be/3FuhG3uefziJx5RxFtOs9X3mwEQY38rqON2f2p3/imCdpsXGxOj9ZhiokdDPH68fuZiVqkaSlah0tf4IvYsrEvqNYQgKOqlRun8tQmgAcD3FMmkQjFr3M+3rNEBy9b6iKrVfytBD0WFvMkcKCDD3Q46ZHQFIzXGpSPb1S+Ln+Q9A2CMhsebSeHJRIJ4uJR1z4nKmetZnlWiCQJ7ywIWXCmg4EPnJ5pAYB1+loETItUtSVW09VzLh//kKnVrvmyZUViXiz1CINDCqFewTiL0JLjJCGHow553TaxjFBOnhfVTHgTj1+GB4mcU8Qro0bSnOJ4LXTKPyPzL+hNCAmsGv4wv1YyRvJU3o/N5a60Fw1PwViWw7l2oRHqkAY62BBGtbKaYZiz8qZuP0nW1H8ZLyLrp0JOFUmKiD30aKAOoF1jzOpBIYCm4Las+Of+vLoTJGKbM/czdW66TGVl9wDKMBvoTz9Hoy/ABQQwTOcQ5oMlmgVCknbmDrTgPoZZ2mfaLCxz7ntmMglgOOExxJlSOMJ2vtIWIPx3mngd7Y8IH1p614reCgu8sjws9hO5R0ZYkLmAhxLDRyhkswNE9qHiSSa5pxdN8O5JpUAWrXipMjCN6A0TYNFFRuwHRsUGzwfkgRGiCNt/1Kguoj+kO2VHGC9xEyAUvZd7ojS402o7uq0mI3LO5p2E15sR/YMwVze5cxzl6ZZ7jvROD179UxWUiwLxtgP3Axgzy5NkdRlOtNbQJ05wArcMRYGNFv63oyOYi5UeLJ0a6bLvAa1kcNGIiYygDGJSpv2ldtD5U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pRX9YIoD2WufMoZLyJMg0RbNGbA=; 5:6XG3dXwwvvYFGZPQ2ZmfpKgejy0aXi1H8MSWVoKKE5smiGHVShfvNN+0exPUhUmZ6Lnl3OR+H3oCP4zdOb0Fao7h+df6BkIwqPKnY9d0i0b1SiZGU1IUGKrs2R0X45U9T1Bf9QF79OvoXIGX3eBvJg==; 24:aeD9uKZL/leNJtl3WVhghJwB4rnKUuClQyUYKgPoaOQ8pnn78AmDTcbLYn0N7cLW6pIwbCBau44XJ9ZHPvf4PUFj/sJTCxtARlFhizoUTr4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0397; 7:uEgaeabClbdeaLIeW17WirAYJl+E9LlX2870lSUJgMl5nZDqI17FTJZDBgHY92n+D5Z7M29mB40o9SgF2jphIiZ4fWx+BNeR4grlpnoR8QKIvie4HhEx3DG/VX42613qOhuTRQBtHU1kr8qlhvTc8u2uGVcIxgURReBqPOmScO0HP99vLY46WfhbgAI8oAZRlbzguK6TgOLaw5xm0eTkYixdjucd8kSJOWMAS813WQ9oLjB9dhYyrmGa5NbOhxAmU+pB/vx/gUfnFLBm3vCVoq6hbPb7B/FqSHq9PqVTpw/MNHDjrkmeahLAlFJtcqprZqGrRTKkuByca4fnOXCc1g==; 20:J+Js0UnXqOLg+JQ1E7oR7Eq71dv/+3muwcVQpbPPmwaok2yRlsxaTI6cSWBhOCq/ALPpHCuY4W88EOlXeabfCCeexgND1zJcYi3gJDsOvOhaBPePAwNPnvmP+fZrFuR4VWnT2LKEOcsgm/lkRuRBYd0DA1ObCHAwuxAvt4+Vgfc= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 21:30:57.4857 (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: DM5PR04MB0397 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 Reviewed-by: Hannes Reinecke --- block/blk-mq-debugfs.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 8b06a12c1461..fa0f624dfccd 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -370,6 +370,31 @@ 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; +}; + +static void hctx_show_busy(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, ¶ms); + + return 0; +} + static int hctx_ctx_map_show(void *data, struct seq_file *m) { struct blk_mq_hw_ctx *hctx = data; @@ -705,6 +730,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},