From patchwork Thu Apr 27 15:54:35 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: 9703103 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 3A8246032C for ; Thu, 27 Apr 2017 15:55:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F35C728607 for ; Thu, 27 Apr 2017 15:55:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E812A2862A; Thu, 27 Apr 2017 15:55:24 +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 694B828607 for ; Thu, 27 Apr 2017 15:55:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034143AbdD0PzX (ORCPT ); Thu, 27 Apr 2017 11:55:23 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:51825 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754496AbdD0Pyu (ORCPT ); Thu, 27 Apr 2017 11:54:50 -0400 X-IronPort-AV: E=Sophos;i="5.37,384,1488816000"; d="scan'208";a="13571119" Received: from mail-bn3nam01lp0179.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.179]) by ob1.hgst.iphmx.com with ESMTP; 27 Apr 2017 23:54:49 +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=ZnuzjIJSovhBCC0l3ZNrDdE6czBTzCmnwQJ2yDNgeRs=; b=WCe+dK0DUbgGYdJDKe+WTaRIbTkc7S1Mqf5LreOqkQF/ZPBs3WZyL7dmXEeib70Dyy1a13PJefzukGMrNLTM3tp9YxDzTLp0xBcgXxsH0VCtTsOosadBvXh7TEwImLrtnbdC5tRsEdsxiBK+nKTRM9fpp6skBe5z2GTnNy4568I= Received: from CO2PR04CA0095.namprd04.prod.outlook.com (10.165.94.149) by BN3PR0401MB1154.namprd04.prod.outlook.com (10.160.154.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.12; Thu, 27 Apr 2017 15:54:44 +0000 Received: from BN3NAM04FT044.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::205) by CO2PR04CA0095.outlook.office365.com (2603:10b6:104:6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.12 via Frontend Transport; Thu, 27 Apr 2017 15:54:43 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; 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 BN3NAM04FT044.mail.protection.outlook.com (10.152.93.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Thu, 27 Apr 2017 15:54:42 +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 7B.71.19026.14412095; Thu, 27 Apr 2017 08:54:41 -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; Thu, 27 Apr 2017 08:54:40 -0700 X-AuditID: 0ac94371-41ba798000004a52-fc-5902144183b5 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 05.9B.18148.04412095; Thu, 27 Apr 2017 08:54:40 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche , Omar Sandoval , Hannes Reinecke Subject: [PATCH 4/6] blk-mq-debugfs: Show requeue list Date: Thu, 27 Apr 2017 08:54:35 -0700 Message-ID: <20170427155437.23228-5-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170427155437.23228-1-bart.vanassche@sandisk.com> References: <20170427155437.23228-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsXCddJ5ka6jCFOkwdtuE4vVd/vZLBa82ctm sfeWtsXhe1dZHFg8Jja/Y/e4fLbUY/2WqywenzfJBbBEcdmkpOZklqUW6dslcGV0z3vKUnBc qOLhjOUsDYyn+LsYOTgkBEwkDkz07GLk4hASWMokcWjpN2YIZwejxOvmZ2xdjJxgRW2PrzFC JDYySvz8N4sdJMEmYCTx7f1MFhBbREBBouf3SjaQImaBKYwS0879YQRJCAuYSTy818gMYrMI qErc+fwfbCqvgL1Ey7OnLBAb5CXObtnJDHISp4CDxLIPfiBhIaCSW6c3sEOUtLFKtDUyQrQK Spyc+QSslVlAQuLgixfMEPXqEieXzGeawCg0C0nZLCRlCxiZVjGK5WbmFOempxYYmugVJ+al ZBZn6yXn525ihAR14Q7G17e9DzEKcDAq8fAyfGCMFGJNLCuuzD3EKMHBrCTCu4mHKVKINyWx siq1KD++qDQntfgQozQHi5I4b5bs1AghgfTEktTs1NSC1CKYLBMHp1QDY/1p3bowb3NllvkF d7orv2+Ilrf6v/ONT/Svzz28MlLi/a90Te+X91X/2bX6jyb72oOmlS/PxE40qHrgo926uq5k reSFeZorWVUPsl9ocfJOcLHrOLz13qdZh/7k/7Q+1hzIXeD19ZRvWFca38mDqz9WZ6zRfPtV k6Nvh8jFXUx8dR4mcbGNSizFGYmGWsxFxYkAm+yTtWYCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJMWRmVeSWpSXmKPExsXCtZGTTddBhCnS4MYvYYvVd/vZLA7+bGO0 WPBmL5vF3lvaFofvXWVxYPWY2PyO3ePy2VKPaWvOM3ms33KVxePzJrkA1igum5TUnMyy1CJ9 uwSujO55T1kKjgtVPJyxnKWB8RR/FyMnh4SAiUTb42uMXYxcHEIC6xklrvZNZARJsAkYSXx7 P5MFxBYRUJDo+b2SDaSIWWAKo8SXvZvYQBLCAmYSD+81MoPYLAKqEnc+/weL8wrYS2z6vp8F YoO8xNktO4FqODg4BRwkln3wAwkLAZXcOr2BfQIj9wJGhlWMYrmZOcW56ZkFhkZ6xYl5KZnF 2XrJ+bmbGCHhELWD8fpE80OMTBycUg2Meo4LPn/6b/3vYcafNYv28VmWt8+72LjrQd9jx7yu Bn+evEnBf/jZ+08ebpm/JPae4f4Z7p9yG9TdI6+/n+v2Sk3J8cyfuaxsv1LeWLasdZr1t9HL 7l/Sx22BQpe9ZIQmK6+OczdtEk2NTXY8vOTQx5onH/l0z3pu4V60++f3FRt3Ch/ccSerRoml OCPRUIu5qDgRAH933VG3AQAA MIME-Version: 1.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)(39410400002)(39850400002)(39450400003)(39840400002)(39860400002)(2980300002)(438002)(189002)(199003)(9170700003)(305945005)(6666003)(1076002)(110136004)(38730400002)(50226002)(33646002)(6916009)(5003940100001)(2950100002)(77096006)(47776003)(189998001)(2906002)(8676002)(53936002)(8936002)(230783001)(76176999)(50986999)(4326008)(81166006)(86362001)(54906002)(36756003)(356003)(50466002)(106466001)(5660300001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0401MB1154; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT044; 1:l1U0RH1chrT/Vyz23i/6VQrkhQtux/rEJYyQwMHxC3GjrTHm6Rengc3t+QGC0+VTZuH83xarxYK6yubr8dJGXg2TQ/jib4GPx4Ec7hh132jH1QXOLM0TbegLxn5MJj3mjhoBsCas9j232w3r60Nnwa1MgV1y+W+NXCfmLGrsQL1YzPQroZXWWLeMDJ4/EQGLGfUwFjUejsNmXSL9uo/QEstT7pX+PVjM9TFNp9UZckuVdpLNVxdCl+rhAulLOlTIJtOJMYNoornkhPAPdhDODHnvy0iMlD/ddNxbLR3QScWKTiHQHzaAMPNdkXQRI55ybvjm7m0e/YuPJ8OlSYjb8J7ubS/epuCNAAuX0DgP0tRL+5+F3CSmCSAf/EFgOC7vyja+dw3SRR5Ps6/wjvcBReLwZ7D++QTekThJ/JHrht0Bm+xXlW5ThgX5NWrXdMXZxVR1ERgsJdX4oeacOp+s38GrzxRct6bQSMCdeYeaXittmKqylw1oqSttsE4sC1moAxP51m4Z2uNhe0BoeAFI95mwEYG+1veVq917mqHcQ9M= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 68ea5d75-ab29-4390-1e9d-08d48d85b886 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BN3PR0401M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Zlc3wogqJZ64Ez/z/8rTa/K4ZcEnSHJjqBy+p2bJxkDaaoSHeBkQr8PuxDOaeZ9WCmewAhN/17uTVJTx712yYeF6hwwAcEdDAwfNgbkpBlfaQp5HcjBXuYcpo3kxwrDX8QkTBysDNYq7l85YNsl7+FdV31LexrnX6EKxaf8Q5dpU+hCBe7HzzNE6OfIqFbCcBdPFe8FAiLmykn99dPkqIdLQp2T8AOuKr25FPe+KC2UHZLmKI1LfLnyTWgI40rIu0VrmBWcAUlAbdAok9eLnUPLGrLEjHDTxWgijjcSk= WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1154; 20:p8yMp6xGa5iaJZNbB3Fo8jhd2c/wslgobBP2em0yoelgnnyQfcnnLuUVuGoXbQVy6IRSFZF2XZC8QEResbXsX0sYeb5ERFrtHUTCYLCftb7H6RZwM0brahRdU0XDnS71+r3uBC9Kmp6WzT3qgjKxyPTXDOlYGmAiJurvNJsMCX3+lEiQ61z7ihJYlQtQm7179P1FPruX4qRNLL81rFZdS34HhU9qk8WPZX9Lc3wLjZxs6+c9N4jG03oRa/vFHdcw5mSgMTonqhRgJ2HAmoB6M6z4XPakxklkL+5vc/aTYSrOvoH/dD5UI06t0hQPQQpN/akxmEj/xxavmqGSL5tcfvk2pJPGx8FjuGzve8kNq9slB0UKYvr3BCt+dslspK+pWNEnl6SnsBh0Jd5yUioRcHiGKyChrv6iblqkYxAxky4OnXQeCFIO/7WgchDnCigtq9OXNnXoeUKyy/WrRFElnQVkOjRUumsgErcIF10npXmynV2O9vaZPwEbdN1t7PjP 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)(5005006)(8121501046)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123562025)(20161123555025)(6072148); SRVR:BN3PR0401MB1154; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0401MB1154; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1154; 4:W5WYciCySsvLhv3R6h2fIu9WEF50KMKnM6mehrAYPZNjgFADgmcnpIdDJaimy4krFC2xyLyIda4pkKZwVw6a/mEdxoqQ+S4VrmfohZksZlQjWVx05sq8+qkQ/ZghPmlYhJNl0lZcZXpoJeEMNQDP3RS2g6ut7v/iUyJkyHFtJjRorNXDtDfU/BisFmpUztUaoNi9WvQdVW5ERMAWlfspnAkA0gwNqMIhOt+4dXuiV/B8NGFK6PHO+7nOoZmdJF/Wsnpiy33UBGIG+PqS1AJTPJ4mp5e+pzVS/enTvEaT4UeBjjYrd/o0CwRABMXurHq6MCtHTtviwaocYnKn+2YqYYSKzXOdVePkP0YSyvubM8nAHkV414Kp1BDO+UEPAy2EmFIPDXt9+9zBn7hPIIWWNRRPGV5BOVOl5hvBsMU9Mx41j32x15ECir6qZvu2RpVlx1/hTqqwq3BYmsq7STVZBY1QMi+q47TbXXTHv2M4gdGle1gDq1pkCNm64C2TQ8niHZ45iEnB4aBXV6wCe+1DXK7Ssxjzjvn7hx9ZVNCuNE5ZqujyhWce0SVl2B/AH4GqpwMq2i8f3qgXMJFxbLdOdu/6Y8IgP2tEvUVVEgUxRuXihZcL50stFETHVwAU64DBo+j9HWrxeBd6XG1t/D9p8s5a2KNYCYTdTsd8s1yI/iN1Va/wQ1ROK/0yydxeyPphk9DmiKuHNxkFiXGMDPWjb46vyVTO4LUpfFBxkqd4VKngOfCOuDBS6cThLjfFjHEfn7EYbNC1tu5mgMzEGFSKI71lDSKsObEZs4aaI7Sra8iIDbKgF+nhhwmyz9TD6ccHbJbyx6nwB9CBM8so0I1Uxf3s52iRJyNHvHNgCHqu7+1i44nmyvDF85FvTZb4ylL0prOfqX8a8qqOs8j0sghNyxBipwsDNgFSszxSxpxW nJw= X-Forefront-PRV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oo1p+8kH7d1NDg3gPIjQ1cD/dyicoXX9OMQPKnV1M59sFa5n9QTBTm2/pD9HzJ7G2zYynFiHhxi99fu1wxzs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1154; 7:gzTbMfT8tNTY5ae8F17LpQWt0lMzyfsZc2V9hvViYy//2gUmXpXExlJE8f3lq7etg56b8snch4/JJTNTuNvSzfVkAQYrKQhGwFZHme6jXHmdzeq+Fl3AOiP2fCDCqjxznkEyzNl9BZ9RPtRUrohfhHJtqDiaCq8eFsWgDSQ3Q5SR4YNDH/fcz6WoB92SyP8Ym71iL3PasTMHmq99HLONs69d7XNPuPXldMkp2I4OufvpN4ehAm0Yhis1Q3HxBWYdaYGzpToMZoliAkd2E1e7p2uDt99pI8pMKVdHDkGHbWE0iQfhuG7uheynEUVJWzA+PDL2+F1a1ssIT0XRxwXhHg==; 20:oc8GVh3QIt5rJy2rqrlQip2FL6+1CDrGSGW+38VJ8pZBAlHzBawIq+l2+fmqSmrbO6St9WZpDl6qfnHSI8L7NeS4XhzIyEjmN6T4IAse9w2HQCzRmiPshZ9VGn4G74dEB//0B04iu570IAbwkIlnc7TPVYTZPUwurEPS5jZF7yc= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2017 15:54:42.7671 (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: BN3PR0401MB1154 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 Cc: Omar Sandoval Cc: Hannes Reinecke Reviewed-by: Omar Sandoval --- block/blk-mq-debugfs.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 9cb673bc7230..5092d90e37f6 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -341,6 +341,50 @@ static int blk_mq_debugfs_rq_show(struct seq_file *m, void *v) return 0; } +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(&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(&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 int queue_requeue_list_open(struct inode *inode, struct file *file) +{ + return blk_mq_debugfs_seq_open(inode, file, + &queue_requeue_list_seq_ops); +} + +static const struct file_operations queue_requeue_list_fops = { + .open = queue_requeue_list_open, + .read = seq_read, + .llseek = seq_lseek, + .release = seq_release, +}; + static void *hctx_dispatch_start(struct seq_file *m, loff_t *pos) __acquires(&hctx->lock) { @@ -831,6 +875,7 @@ static const struct file_operations ctx_completed_fops = { }; static const struct blk_mq_debugfs_attr blk_mq_debugfs_queue_attrs[] = { + {"requeue_list", 0400, &queue_requeue_list_fops}, {"poll_stat", 0400, &queue_poll_stat_fops}, {"state", 0600, &blk_queue_flags_fops}, {},