From patchwork Tue Jun 20 16:40:20 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: 9799955 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 92EFD60328 for ; Tue, 20 Jun 2017 16:40:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99D5827F88 for ; Tue, 20 Jun 2017 16:40:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8ACB22810E; Tue, 20 Jun 2017 16:40: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 C42AA27F88 for ; Tue, 20 Jun 2017 16:40:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750946AbdFTQkg (ORCPT ); Tue, 20 Jun 2017 12:40:36 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:48750 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750923AbdFTQke (ORCPT ); Tue, 20 Jun 2017 12:40:34 -0400 X-IronPort-AV: E=Sophos;i="5.39,364,1493654400"; d="scan'208";a="26825726" Received: from mail-bl2nam02lp0083.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([207.46.163.83]) by ob1.hgst.iphmx.com with ESMTP; 21 Jun 2017 00:40:32 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=IBKV/eEzuvs7l5iwtQ+ChzGwvPZScYjEWdBi8tRNZpk=; b=QVlhkzQpLIso/dX1LFJerNnAQk1Tf+3CeggFgjTR39TgH3LeEN03A6hw/6PDIDEr1rL6bPooXUj3PPjPVNC8ipBWZ0e7MXKpazc+1CROzkkrU0VtKYHhXIYeKsacbJPOJY2U8ih1wgHePW9TABx79wbvykImqTSN1lIsd6lwp8A= Received: from BN6PR04CA0025.namprd04.prod.outlook.com (2603:10b6:405:3b::14) by CO1PR04MB556.namprd04.prod.outlook.com (2a01:111:e400:103e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Tue, 20 Jun 2017 16:40:29 +0000 Received: from SN1NAM04FT030.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::206) by BN6PR04CA0025.outlook.office365.com (2603:10b6:405:3b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15 via Frontend Transport; Tue, 20 Jun 2017 16:40:28 +0000 Authentication-Results: spf=fail (sender IP is 63.163.107.21) smtp.mailfrom=wdc.com; kernel.dk; dkim=none (message not signed) header.d=none; kernel.dk; dmarc=none action=none header.from=wdc.com; Received-SPF: Fail (protection.outlook.com: domain of wdc.com does not designate 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 SN1NAM04FT030.mail.protection.outlook.com (10.152.88.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1178.14 via Frontend Transport; Tue, 20 Jun 2017 16:40:27 +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 AE.B3.02805.AFF49495; Tue, 20 Jun 2017 09:40:27 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 20 Jun 2017 09:40:23 -0700 X-AuditID: 0ac94369-9c18398000000af5-24-59494ffae5d2 Received: from exp-402881.sandisk.com.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id A0.CB.11415.4FF49495; Tue, 20 Jun 2017 09:40:23 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Ming Lei , "Hannes Reinecke" , "Martin K . Petersen" Subject: [PATCH] blk-mq: Make it safe to call blk_mq_quiesce_queue_nowait() from an interrupt handler Date: Tue, 20 Jun 2017 09:40:20 -0700 Message-ID: <20170620164020.18260-1-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.13.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrALMWRmVeSWpSXmKPExsXCddJ5ke5vf89Ig/mPOSxW3+1ns1jwZi+b xcrVR5ks9t7Stlh+/B+TxaHJzUwObB6Xz5Z67L7ZwObx8ektFo/3+66yeazfcpXF4/MmuQC2 KC6blNSczLLUIn27BK6MHfdWsxV8F6g49mQZUwPjdr4uRk4OCQETiVNH3rCB2EICS5kk2iaY dTFyAdnbGCW6byxlginasXMvO0RiOaPEj4Mn2UESbAJ6Eqfm7QMrEhFQkOj5vRJsErPAC0aJ v1+TQGxhgVSJUzvmMoPYLAKqEtsbXoHV8wpYSzSdugu1QF5i2rteVpAFEgJdrBL/Hv9lhigS lDg58wkLxFAJiYMvXjBDnKoscX7tE7YJjAKzkJTNQlK2gJFpFaNYbmZOcW56aoGhqV5xYl5K ZnG2XnJ+7iZGSDhn7mC8+8T7EKMAB6MSD2+EsmekEGtiWXFl7iFGCQ5mJRFeJ2egEG9KYmVV alF+fFFpTmrxIUZpDhYlcd5zMlMjhATSE0tSs1NTC1KLYLJMHJxSDYy5ubu5f3qadszemT1f 9mHtlwXNtr4HGzfO4a9gVS67m5G0ce2kjNOh7ALFDnaP1vAuVTvmtEl/3mHmlvMJG68mqLD9 s9n7hOl7WdQawXN6d/sLavx3lqwVyZIPXBRePfXT3sCr2nO5f2RNlpF6f9CvIK3ni+6Og44c 03pDaj5kzb+druNUfFGJpTgj0VCLuag4EQDReVIEYwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIJMWRmVeSWpSXmKPExsXCtZGTTfe7v2ekwcpdChar7/azWVz684XR YsGbvWwWK1cfZbLYe0vbYvnxf0wWhyY3Mzmwe1w+W+qx+2YDm8fHp7dYPN7vu8rmsX7LVRaP z5vkPNoPdDMFsEdx2aSk5mSWpRbp2yVwZey4t5qt4LtAxbEny5gaGLfzdTFyckgImEjs2LmX vYuRi0NIYCmjxN/pF9lAEmwCehKn5u1jArFFBBQken6vZAMpYhZ4wSgxa0EPO0hCWCBV4tSO ucwgNouAqsT2hldgDbwC1hI3Zk1lg9ggLzHtXS/rBEbOBYwMqxjFcjNzinPTMwsMDfWKE/NS Mouz9ZLzczcxQgIhcgfj04nmhxiZODilGhitnmh6XTXbcNYydLK09Lo7lplKkZXWstY3njRo +Apcfi7/cUfj7yWtHdsV9/B9uM6yJXBFs8eRAy/1VP5qJXw1sNJ1XKBjp8zXp/WPz5PlxJM+ fhe5NZNyHKTkZ2TqrmP8Vjjh1/2pCZpFn/t+7X249Nq/5NUfpl/+Zn301IyVgpP/pblploQq sRRnJBpqMRcVJwIAJFAtZ7QBAAA= 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)(39840400002)(39860400002)(39410400002)(39400400002)(39850400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(6916009)(77096006)(85426001)(50226002)(81166006)(8676002)(8936002)(4326008)(189998001)(305945005)(356003)(110136004)(38730400002)(72206003)(53936002)(50466002)(478600001)(54906002)(5003940100001)(36756003)(2906002)(33646002)(105606002)(47776003)(575784001)(86362001)(1076002)(5660300001)(50986999)(106466001); DIR:OUT; SFP:1102; SCL:1; SRVR:CO1PR04MB556; H:milsmgep15.sandisk.com; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT030; 1:f5FcbKoODAJDzbPU/3q6I5bIrnprQ+58V/0zuwIYfvBxvf6lMhHAPYAcW/+A0ttE6jaRmaKDX8h7zWgLTNemUoYiMbBjAbzSjG02u8v89rPOFuz0eABH8Sg65561gdgHPKhTchPXxGnldDeUSw0vLPx8fUwU4udOPecSsy05YZ76LQu5bxwdy6SA6gvvPLfh5igC4iZ6WJEQHPxAw+n7mkAf+D9dIzfRaDRdur6IXBeuUNWFKvkVLUwuf1QtVAGW0pPSb3Cu1MqBQ9+1oWrjLt87hhMrafWz3ZQwiShh80jU36oelkzrgaIkKfz4z1BrJkplLN5eAmG471iDJHVoIAG6nuHWqf77l96B7aS+V2uGLXWTG2tBlg/WZB8LIJwEc/93Bvi+9/KF5+slIJGNXi6AJ2ox/MzsqbIvrZwIT/NVnh6bJPsr8MisRJRuEZT4KuivRODzjVqFS5Xp63xpFQI1gV9RyLC4SlAhDJMLxC9brF6UhqiH44aEYU1FWiMvE0TlT5KyWRv/x61Au1xP3Q== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 451f8454-2fd9-4710-f848-08d4b7fb0ef9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:CO1PR04MB556; X-Microsoft-Ex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vlmyb+fA96W4TCQJ1oF3iJkvA=; 31:5hHFc6jcyBZGCIyOd5OB6PkAsjJxIXtVGseSMJYe+FQPkOScusSq/7irmgrvrJlmWVV9/ZOdd4GvdzKrCGcIizE2WZupMOBuokjDaYcMKPv67UtCvgjHH8iijMO7a1n+HbYz7GlCD1Ii7Y9kRa3JXW2AMAkjXrebkrcPXEFk5RE3DvutZ83xbuLqTEmYKIuXtAH39VO6nEGSy0A4unm22K4LHfjOR2O6MDuhkhqhftak2s1b4p+5MkZlnH1Pyk+BpST4pbv9aXBqxvowaPMQ0g== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB556; 20:oOfDDeTG28U7+rawJa6CHV10w2kNdmE5Vn8lSyEIb4Ep7Q8GbkxexhqANMh95rU+VGeWfrh2t5BL8FkEfTQ/2eXSs4TC/Dlyklq7tbjJ2FDvqDCPEC+M3kBdDdBhL63rf9Vx0d3Z90nk1vEIYl5P9xc1fqlj0eippu4dfYKJJeuUdwvs1Yq/NAjOaWbxcWocsU0OwSR6vcNN0yV5S7afvdvbANH0zeIerVAuLYjeCMHjFoX7atE8/PD66Uop9NN8IHXM9N5chEZD2pQvGso+ZB/XHQoLjY64hA9jc73rNAwgVFfbXDxjxJ4mxfRDuASzPMck3cM3bzNemzpGnpqiAVk+4l6nnvny5HEgadKGDgPkHht7NGy5STELvwAbkqh+RnzKk6xnCR3A5Rfa17S6cOmYxHzvWkXHEWlGsD4bqohbdPPKZXZXHFHv5TFgbYEmjGQ5sw1Il8Sa4ZOFVlkLibatFhXaWH7iuXIL+2cculax/xS28nq3TedYlMMn1QI3 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089)(146099531331640); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(3002001)(93006095)(93003095)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123558100)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO1PR04MB556; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO1PR04MB556; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR04MB556; 4:OEVLRVw0kaoDdD+Jp3XFq9aD/B1/4QXkkNx1eb0bMng?= =?us-ascii?Q?ROxK8y6YepiWR9E0cYVhb3lAOxRIoGBq0oH5Yx362zyorhACPTs4I1lc695i?= =?us-ascii?Q?xEEZ0+4mP9W7SZ/klzLgCsicjPjAMEP7hg+1nfdl8e8FOaf6hSaah6uUn904?= =?us-ascii?Q?DTMivtAcH/4/gTXf+CXGpnWYtWWhaiSAaSQVh3tdBXUNTxOb1lNE914eyaCk?= =?us-ascii?Q?788IHSPFQlXmnto80GxgrzDG21xJHqC8rDS4AHDvu6UsClNKKSPvfYqhdrr6?= =?us-ascii?Q?wjQOU+S36a3+JyYMLZMeHP4SG+ZSENBwKWv6HWQ4BD7q3gxRyVjNJMd5QrDK?= =?us-ascii?Q?GU71LtKXJEf9FAMSqXbhQKIyICwPiBxPWE7bdS0lXpOQtLryMK7RRcolcwmU?= =?us-ascii?Q?tx5pZHYKJoamkoyvVE4BLzyktlYKujTev8rPeMPOdRxQQ4ik6r0ub+1tutJb?= =?us-ascii?Q?SJ49X8YRDkbQX6274g+VIt3vFgdXd4pdpjCmFNMjXx8quKl4c9O7IPbibq5i?= =?us-ascii?Q?mLJzIXf7yFx1yleFbxiNZ6+ItaAAsdBa7P9sRVJlcDOoKUbLZ4BRk4PyjR3e?= =?us-ascii?Q?Zn5hXNh2UcQ1YTmK07fQ2yN7MgffZgNATiOHivwi/0RXzENFv8OwAXfj/ycg?= =?us-ascii?Q?mMFn6M1idJY2UnqFhT1+dZvr7d9jM+3p41eF+I+tCghARPDR8JSEaG/Nwbnw?= =?us-ascii?Q?mTwW3BAQq1vzHdNjJG9oqc96hcx2XaWJBUbzluMxQozyjsqv6oBM4dR5pMV9?= =?us-ascii?Q?+gSr8NZbcm3ruRXQ0yzv1VK4gNzmZ2TOcqudwo4LqU38RjncxhiOAgkN1X80?= =?us-ascii?Q?yFVs7gNOa2lPM1xR2ovjFMuIFLXs8mo0a4SpjvMwZNrBQND9EahsAbS77+g7?= =?us-ascii?Q?sBYZesoD3v3miLm7pEgn6z5zAaN5LrDErqn9ycTTJXR5yw8nNpyH2fsDMrIn?= =?us-ascii?Q?lgO4uYw0T1KDPrjhSR3wIH5BAaimKTmR1oVujL9Ywn7aIB9mbWznBSx3xlHD?= =?us-ascii?Q?+C4a3XVC5xl+rtG5muenwcco4UptgU1Tso3+r6blypDsU2/wqswXSjOPpDDU?= =?us-ascii?Q?oQtQe2EammOGxbb71SaNJKfTRK9csFtlna2P29+S5paa3cNINbAS+qFx10To?= =?us-ascii?Q?Zx5Sxp+ScZ8lH3DQ7RwwKZRg/aplgQX7RgOv7GDbUmEKdNCxV4XY0VOPVBwi?= =?us-ascii?Q?yxBrGcYlyXuJqZatkSFgl9y7z+ueqqmIFqWsnpfTwFPDDa0gRNZF9HRvAoOb?= =?us-ascii?Q?I1FW436tySLqyE2GuBkPTDk/RMhfO21vVU2hA?= X-Forefront-PRVS: 03449D5DD1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR04MB556; 23:c9cw1RYEbV8x5C6kaKzhZ+UhKavgv8e9xb8+KpXra+?= =?us-ascii?Q?ijyZVLHyNuG1Jsel4G6CtKqQq9iH1RfmsvxMUqT/Kap9y7IMD4BOJl9icMtk?= =?us-ascii?Q?WSpBUX8ZBghLbrf9IKNGhwYPQOvrYT8EWsU8hlAJVNA+0MzDtKDGP0gTRifL?= =?us-ascii?Q?59MgiyVIv+xP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r1jY29iLi?= =?us-ascii?Q?aQoLn5qqpbao+Bl3UFfXahJZjYe/ZV0yeWE3PVXq00Uj1HhIFCpT1em7U5zN?= =?us-ascii?Q?jD+QObY8o=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR04MB556; 6:8omneYjIsH2d3q1pXRfTXDvtyAA3oWlfFy9mk6Xvz80?= =?us-ascii?Q?wP5BpOwIVyo0vp/OxWGRfWJb6WKN+AtCs2CJ0nr3gdgYDAk6Y7s+Q4sfzefT?= =?us-ascii?Q?8pcW+xYxUCpW3mb5umkA6MwEguV8ByK217FlTqPQzIjg1bRfB0Y9oPsZYcfq?= =?us-ascii?Q?evdu4Fi8z9EtyC38ym8Sv/pTNnGf811cl71Rz8aN4g0LwVSgrPLlZ5FocWFt?= =?us-ascii?Q?v/+focvIZ2OB+C0Ssj9hIGz+5JPnBdQ5Gj0SlX6aHH3pDofHxZSTs1YsLfo0?= =?us-ascii?Q?bwLrx89QCuMZY07STZlm/C2RxCRQ0+6h57EAePXKRtNy8FHD9HSVw2QSylOp?= =?us-ascii?Q?EdtJPZmle3q/FFUed0D1zSC2gcc5QQdbeSmQJPRqRA5PKDubn4/ZB5dv3I7m?= =?us-ascii?Q?KMo2IdQ556buPV7wk9VF4iLySkjeZSfTJHeXQmxxZKxKRYRPeM9Pob623ouO?= =?us-ascii?Q?MLG1OW5CIjB51kT4FTbnSMwSWyLd98Vp3bJyldkYREaSjlzEVshvwCHc7uD+?= =?us-ascii?Q?gdHU4wI3HtMaREG279MZO0Q9SUxitG/x8rbDoxylf91vGj/Jh7mGPmKaaSSB?= =?us-ascii?Q?1Devlg9jGQ0aOfC+kUOxqwQvl+f7KBMwc1LQvaeLDltcKm5Hd159GPXOGHsf?= =?us-ascii?Q?nIV+Q4A6V13koUyXP182/i9oQWI0tQnqKI1GTd03mDaVu9zl5y6wu9UgicRB?= =?us-ascii?Q?J0Du9nzqYxy0lprsBMyllk994e509I2f40IcqlCH4YMe5Dvrug013by9HVMV?= =?us-ascii?Q?oQEXTyPsCk6jw3KlvYoImUbn5gmM1u0mKticnPGEQAwm2+wBKlMN1HXqULlK?= =?us-ascii?Q?FhkH6/JJMGiHtiI9s/v08FALHALiCvUPjEFO75u4nJ7hx5Mac6WZHQuUEuod?= =?us-ascii?Q?jhS7HSjp9mjzD/b+eprcKqRyo3WEpcUhktnQpvMgfYYLrbzjGS2Vbt5Y82pp?= =?us-ascii?Q?qml7nU04SZt28wzOxsgFPYiONa73+AYGJ506FdL9PbId5KIsAN/sdtPmpZE/?= =?us-ascii?Q?X0OjkU5gGTyTqyaegZnrb?= X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB556; 5:NNyzYKTb8RkiHMfqt8MLAMcPRauMFBSpCiqoTrMQT9Sq3w5UXwDQ6NzDl2n85eSLftpbcrIf/BtFcq5C7Z7GaP2p6y+/4N82btbtAhUzwaaiR3eMSLsqoCTBOft+zHVdv0GttY4FYu2oZxsaQUGaCBLp5aaBj54eE5lKRgvWxPTpydGfJB7FIAEz+ZC3sDAA/8eVCKnf1A/7b4hABCY/8v9uoAQsvLxDKBmaxFobCSh3xSAUBada0B/zVNC/eoeN76xQS0Fn9qHLRC+R3CP/FtSu7/s8lt3l55Wxl2dqnYmwHaVMnJD9PDuMhBZm8xzPdqTGU1VTkkBJDMOcwAmWgKAo5hlBJUWWWXVcaIyfzU4mXUkg8vTd2OuVsnAttm5e5TVNYhND5eCO4e+2zHDDbzmrXdSAXPNu+ba7+XZuWckjyY0CUDQR2n9DcK0yl1vYhqzmMljFs8iWNGEKMWd5a43pfSlfi1N9nTn1hcIPySC7p024omEJyB68rM38cNVH; 24:RJDWdPIDKhpWeaU3LuaUfAndGTJJ33oIxIFqRl6dk1U1JCHt0l6m/K4+53xfafzVLvAmlVF1PFiHobHQTPJBenxwFZNHMLASo6Zw3SFCTLE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB556; 7: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:40:27.6707 (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: CO1PR04MB556 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 Since blk_mq_quiesce_queue_nowait() can be called from interrupt context, make this safe. Since this function is not in the hot path, uninline it. Untested. Fixes: commit f4560ffe8cec ("blk-mq: use QUEUE_FLAG_QUIESCED to quiesce queue") Signed-off-by: Bart Van Assche Cc: Ming Lei Cc: Hannes Reinecke Cc: Martin K. Petersen Reviewed-by: Ming Lei --- block/blk-mq.c | 14 ++++++++++++++ include/linux/blk-mq.h | 10 +--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 1c4f1f4978c6..92faf340dc92 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -153,6 +153,20 @@ void blk_mq_unfreeze_queue(struct request_queue *q) } EXPORT_SYMBOL_GPL(blk_mq_unfreeze_queue); +/* + * FIXME: replace the scsi_internal_device_*block_nowait() calls in the + * mpt3sas driver such that this function can be removed. + */ +void blk_mq_quiesce_queue_nowait(struct request_queue *q) +{ + unsigned long flags; + + spin_lock_irqsave(q->queue_lock, flags); + queue_flag_set(QUEUE_FLAG_QUIESCED, q); + spin_unlock_irqrestore(q->queue_lock, flags); +} +EXPORT_SYMBOL_GPL(blk_mq_quiesce_queue_nowait); + /** * blk_mq_quiesce_queue() - wait until all ongoing dispatches have finished * @q: request queue. diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 366b83cee955..23d32ff0b462 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -266,15 +266,7 @@ int blk_mq_reinit_tagset(struct blk_mq_tag_set *set); int blk_mq_map_queues(struct blk_mq_tag_set *set); void blk_mq_update_nr_hw_queues(struct blk_mq_tag_set *set, int nr_hw_queues); -/* - * FIXME: this helper is just for working around mpt3sas. - */ -static inline void blk_mq_quiesce_queue_nowait(struct request_queue *q) -{ - spin_lock_irq(q->queue_lock); - queue_flag_set(QUEUE_FLAG_QUIESCED, q); - spin_unlock_irq(q->queue_lock); -} +void blk_mq_quiesce_queue_nowait(struct request_queue *q); /* * Driver command data is immediately after the request. So subtract request