From patchwork Fri Apr 21 23:40:21 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: 9693981 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 3A2BD6038E for ; Fri, 21 Apr 2017 23:42:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29DC128668 for ; Fri, 21 Apr 2017 23:42:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19EDD28681; Fri, 21 Apr 2017 23:42:11 +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 B027A28668 for ; Fri, 21 Apr 2017 23:42:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1425983AbdDUXly (ORCPT ); Fri, 21 Apr 2017 19:41:54 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:55946 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1426868AbdDUXkl (ORCPT ); Fri, 21 Apr 2017 19:40:41 -0400 X-IronPort-AV: E=Sophos;i="5.37,231,1488816000"; d="scan'208";a="12906121" Received: from mail-cys01nam02lp0050.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([207.46.163.50]) by ob1.hgst.iphmx.com with ESMTP; 22 Apr 2017 07:40:39 +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=F7zKY07o9dFhz6uGelVRzax5SdKyrTrINWSbS7UTQyY=; b=DsqorMPQOeLkXeOsOJ7uOI9yhrbPQvHxzg6UGF0kcQsZXLqGlILEbi+FfBLdcffjrGjb1c6pQX0UlQJIrxg2swa79e8iEV4BfNJWmiUi5/hJTKzcxum7aZ6wbXUhR82RODwbrjC1QyMlplrZs9eYVVgnOCsc50hY9JgPu8c5EFo= Received: from BN6PR04CA0001.namprd04.prod.outlook.com (10.172.194.11) by BLUPR04MB881.namprd04.prod.outlook.com (10.141.203.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13; Fri, 21 Apr 2017 23:40:35 +0000 Received: from BN3NAM04FT020.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::201) by BN6PR04CA0001.outlook.office365.com (2603:10b6:404:cb::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13 via Frontend Transport; Fri, 21 Apr 2017 23:40:35 +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 BN3NAM04FT020.mail.protection.outlook.com (10.152.92.167) 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; Fri, 21 Apr 2017 23:40:34 +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 BB.22.29323.0789AF85; Fri, 21 Apr 2017 16:40:33 -0700 (PDT) Received: from milsmgip12.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; Fri, 21 Apr 2017 16:40:30 -0700 X-AuditID: 0ac94369-548749800000728b-ba-58fa98703545 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 92.66.18148.D689AF85; Fri, 21 Apr 2017 16:40:29 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche , Omar Sandoval , Hannes Reinecke Subject: [PATCH v4 05/10] blk-mq: Unregister debugfs attributes earlier Date: Fri, 21 Apr 2017 16:40:21 -0700 Message-ID: <20170421234026.18970-6-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170421234026.18970-1-bart.vanassche@sandisk.com> References: <20170421234026.18970-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRmVeSWpSXmKPExsXCddJ5kW7hjF8RBs272S1W3+1ns1jwZi+b xd5b2haH711lcWDxmNj8jt3j8tlSj/VbrrJ4fN4kF8ASxWWTkpqTWZZapG+XwJXx48AG9oIJ 7BW/H9xjb2D8ztrFyMkhIWAisfjcfiCbi0NIYCmTxOLuM1DODkaJT1+2MHcxcoBV9SxLhIhv ZpT40t7ABtLNJmAk8e39TBYQW0RAQaLn90o2kCJmgSmMEtPO/WEESQgLuEv8+z6bCcRmEVCV mLl4FTuIzStgL3Hx2FcWiDPkJc5u2ckMYnMKOEgsbz8KZgsB1Vzr7mMEGSoh0MYqcfPKCzaI ZkGJkzOfgDUzC0hIHHzxAqpBXeLkkvlMExiFZiEpm4WkbAEj0ypGsdzMnOLc9NQCQ1O94sS8 lMzibL3k/NxNjJDAztzBePeJ9yFGAQ5GJR7eFSy/IoRYE8uKK3MPMUpwMCuJ8B6fBhTiTUms rEotyo8vKs1JLT7EKM3BoiTOe05maoSQQHpiSWp2ampBahFMlomDU6qBMbBpVgiX6ksJ/jZp n4saTwVrBCcXmeXJzYmyehqQlXNq8+WSe/81z8ZKZn3Pkrvx3/707enLjaqc1BZtzug8K/3h 21e7+gtLj69/1PZcevLTrzWtmoe+nYnMMXp+uih78oGH/qyiJ5/+MZntvmZ14DRtxvXMG+eW nfr0IqPxXNLO34+P/xB7n6fEUpyRaKjFXFScCAAaFKKraAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMJMWRmVeSWpSXmKPExsXCtZEjRTdvxq8Ig242i9V3+9ksDv5sY7RY 8GYvm8XeW9oWh+9dZXFg9ZjY/I7d4/LZUo9pa84zeazfcpXF4/MmuQDWKC6blNSczLLUIn27 BK6MHwc2sBdMYK/4/eAeewPjd9YuRg4OCQETiZ5liV2MXBxCAhsZJS78m8bWxcjJwSZgJPHt /UwWEFtEQEGi5/dKNpAiZoEpjBJf9m4CKxIWcJf49302E4jNIqAqMXPxKnYQm1fAXuLcm+9g zRIC8hJnt+xkBrE5BRwklrcfBbOFgGqudfcxTmDkXsDIsIpRLDczpzg3PbPA0EivODEvJbM4 Wy85P3cTIzgYOKN2MF6faH6IkYmDU6qBMWWF8J1LYaLT4z7er69U9r37XHG9YbT997WG+Z93 svs9PrWwLHg1q5GAvdhPh2v9TQoz50xnzri6SCI76+0t0dlKNgeXiJ/inl/cWTLJItG8VJR1 3r+AoOML3+dKR35sv1aWta9G+N/uy39aUpZbWk3JrL1ScUupKyM549Hfi6qG81UFI9s8lViK MxINtZiLihMBNlYq2bYBAAA= 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)(39860400002)(39450400003)(39850400002)(39840400002)(39400400002)(39410400002)(2980300002)(438002)(189002)(199003)(9170700003)(305945005)(189998001)(106466001)(2950100002)(6916009)(50466002)(6666003)(1076002)(48376002)(2906002)(47776003)(5003940100001)(50986999)(36756003)(76176999)(38730400002)(110136004)(4326008)(5660300001)(8936002)(50226002)(81166006)(53936002)(77096006)(356003)(33646002)(86362001)(54906002)(8676002); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR04MB881; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT020; 1:75GXit4tAa7Joty/vUqr3+0Wm9QuXpjP2DgY7rQyddlZVMgNX8BwdQGxsGtmtgZjBKVFDHshP7lktIR0zSwG88hxzFuO8o8DtepSDyrdH1pQbefQR/LdzoCmyDrK1kqreGNbKmIPFI71Fu+kZ5dyrWbK0mqUTqEJpGrWPuBQt4SIm6M2x21risxixxGuPvon5vFGYyNYVPI/95Oy+YLpk4fgYJ9IdfS0wJqA0o7MSEMD7u76s5siO6raykGqHtO2T8KBz5N2e7NYfUzi4bHPjuZWtv47728LNY8I7jTQ3GItghSjjSuAtUWK+noQZjmuL+Zza9e8Rd936YWZGhiL//sEbTZrmifZcjH1wCgCVGYXDWRiWgsotNmSsKCYi2EpOiA2cbDVZVsKDh4O7CSBuvS2r520q7FOGtcefpJcmvRX0Q2OxLsjoN7wNswFJJ/bZAp9SYtVzwZRdIMKUHsIp4cYHC6kyiDu3dOjfBpwm9VfRe3+IRCOYTXaB1QJMuGvwPIJjUc9DegILtMortsWhSi2SR+dF3yGF9Il0D3ltVc= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c26d53e1-a4e9-4874-fbf6-08d4890fcec6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BL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kuFZ71P+O0zF3Zpw9KG6eve37rMDFQx1cNujcbWsEpQc7iBG1nxzI440NmoO8XDhsfgZKm4BacsxzNoxwO/cN9RV37eyuDEXkoiR1+AZSef9ELNxfRn9MHUiZ7ITHMxXmJpy5l0/2a4cm2O+o5UgVhHe0d5wVryxzvYkZ/WlITlOW+6MHbcOdDfTWpPF+nD56WtavBcnXGI439BraIUBC1qGLf8Ng5FP77EZ9pvKJ8H8C42dsSjqJgc0EdClfRYAbUk3tvrJ7zg== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB881; 20:KPHLKupYj1vrOXpMnlftsNrcRGHMZR7BGvkNr60cf4ldFYZ4AueH6Gl6lgiJV3gUxjcAshqfMNrflNzNzwaCQZxCsAIB9yZgJXKY7Ayvfl3XdeK7PXlPoHdH9GuUXkyHOoB+4rMpX5A77jy4Lw6eQkpLBseLaD5Oc7kNimnCOEmKFpao7Ggq77qkBeuVHVcD3TQV5NwzyExCGJmkYHeiS5u/i5fxoKNx4PMTfNdVh2f3e4VeKc9jIxkQEMuJgFtBWrav1hvUnjtXHiZKrl2QAIVmjh4x4h/QuNRf0EVHFdLWxi6chGLQUC8lcAg4cxB4kIN8VknmO+Pt1wtuIhBj9REXMCcc17wn1KX78sLFgeMcKQV0YaJ8NpUwPBO2CDuorgLqjpK6IuanmI1L6HXfh420ue/shScuG0vGTly4147XufCmZIATwBorVm9r+NBARoNtQEt7zpwlU3ntQKPbJGWKj1zb8jmdt09gluP8VLX8Cqoue/4Jy/9RV/CCjQxs 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)(5005006)(13016025)(8121501046)(13018025)(93006095)(93004095)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123562025)(6072148); SRVR:BLU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upr+OR6EnJfuGZ4YR4UqLXUAHLdsDDKOVJ?= =?us-ascii?Q?zPTLofgCQLwXZQGfBVD8uF8LAE0brbZUh5OG9iwH853+9fOIcikI2aS1iXe/?= =?us-ascii?Q?N0qQIOsOXAzDIN/Gz+axg/xGnw+OjscH9npD3cipZu4g=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB881; 6:KfdEt/RJ02ItUpSAbfijcGuY4sXhDQS/siEriQqxGgvExseg0nmPKSsGbfytoFFOsnhPlfCP1DWQuOT7BCNh22UrK4sc6NNALaUegiyEfvZX3zYdQJ3bigwzOZ31dJOsb3chR/dfavU/qfZKqHIzYWIelInr30acHCmvIOmKxW6vFsxYk4OFLneeDV+mQP/UCR5yGDf3g18+72h9BnKzWksj11Ylz8dbQqVvDnxbNaYWKHP8bABNcpONco6v1pxoDxycBV1pjJrefgPg2aDtexVKqrVMLSaWe4j9WKWwHsc2xvYU9pMNMfLV38D9dIeI21u+jiqo/BlrIsZOlucpVvkeUSC9GUA/XUVrNZSDQ09vs2CJsTJpYbDPD8+VtGMuDClFwczBq0s/BZMpjJ3mz72BRdacoY1ZT6iiayvWPVJ0+k2NMG0sLJPvpPBatEQL+WAPa66FXqxwfMAqvRaXD7uhTH7psxkEvB/jtKB9IkVEO/7zcqpwxjWU+MGYacLXSjAw+akvMKvsS3DRgJg0LwfOjMkuLcLWYQ7YWqJQVxc=; 5:d9dxToOkN84VuFSpS6QY7glV+kJPjkZqO1SPxdd4o4ICuYQwh6ui5O9AkcxPXrN3icZwanLwXVaGl6PzOYf7wg67Nd9F7XAbtxT0UciFjDU04j7Ls+i0GGYMhhUx/reJRE7qwBHYRUBp1hv835ntfA==; 24:gEXDYqVEWgUfs2QToGnGP+SBjkwiITqZuuhclXCVC6/0GxxzhX2bq1VVn/1e7v5TUY4KGwXS6+hVkNnFioNEAFUfIQEDAOdDOx2CovhnEO0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB881; 7:1HNJXoJUv+3iB35riDFzJsFqwOsYKAknedTNbgXAa3IYAP0NBQY7A8LJlSqMpnRF5RQ0pRHwdk147kFrPudhi4ZA+YbM4TcQWp9PluG1tIDjUDJwI3CqG0+xZEpVlOJSK2GZdz78hf8j03bTWwGoxKaJ9KPn0ytqiHbMiYRi8HGD1FWeaoQeh2h86DLz3RgWBHAvg/Q199/aWvZwLOYu4H9Thd3hiJ/bkzf+1lBByiihAyb/hq5Sb/G0rH4WH4OqTGbrXb0hacniQW6Ln6UrfER7NsMUlBVlQVqFO5069p+mSDouHNrc0Qx3AsEx42g8uQmPdrruNMs/ZDVxb4fVHw==; 20:+5wdDNy70C8FX+0o9QlRxvfDAJ8cWaMVoPXaG4mwbupDyQpNcOlIJsee40Y6lgI7xqIcAMlQjs3fyam7kPCo+nvFKnreRQtXx/uyJlNfJBONkcY40RPlL7p4JiOozTOjhzRVqxIRlcY/ot4YzlaM/e/mmdSZOHpvhklqQRdEm5I= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2017 23:40:34.8056 (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: BLUPR04MB881 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 One of the debugfs attributes allows to run a queue. Since running a queue after a queue has entered the "dead" state is not allowed and even can cause a kernel crash, unregister the debugfs attributes before a queue reaches the "dead" state. Signed-off-by: Bart Van Assche Cc: Omar Sandoval Cc: Hannes Reinecke Reviewed-by: Hannes Reinecke Reviewed-by: Omar Sandoval --- block/blk-core.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/block/blk-core.c b/block/blk-core.c index a49b0830aaaf..33c91a4bee97 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -566,6 +566,11 @@ void blk_cleanup_queue(struct request_queue *q) spin_lock_irq(lock); if (!q->mq_ops) __blk_drain_queue(q, true); + spin_unlock_irq(lock); + + blk_mq_debugfs_unregister_mq(q); + + spin_lock_irq(lock); queue_flag_set(QUEUE_FLAG_DEAD, q); spin_unlock_irq(lock);