From patchwork Mon Jun 19 22:08:01 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: 9797947 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 42A6360381 for ; Mon, 19 Jun 2017 22:08:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BB2726C9B for ; Mon, 19 Jun 2017 22:08:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 20578274D0; Mon, 19 Jun 2017 22:08:54 +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 9E5BA27480 for ; Mon, 19 Jun 2017 22:08:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752444AbdFSWIw (ORCPT ); Mon, 19 Jun 2017 18:08:52 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:21855 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752671AbdFSWIr (ORCPT ); Mon, 19 Jun 2017 18:08:47 -0400 X-IronPort-AV: E=Sophos;i="5.39,363,1493654400"; d="scan'208";a="27623320" Received: from mail-sn1nam02lp0024.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) ([216.32.180.24]) by ob1.hgst.iphmx.com with ESMTP; 20 Jun 2017 06:08:19 +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=pX+gU0m2yN4POmlvw0/+FypeZn6+0dnfFGnmGVDwMUk=; b=LWBCaZLnZPgHfHA27lncgayYR1z6JdWYQy5kyNBBsg9BZhMgamhcm9gmEm0lkSd6AZLucauP0yYB2NFcEuJddHePbVn1krak6XJC+U9vBoGruWe++smBVoB5YTYffK84ix6iHjFuwV40dmM8AZx5YyrqgpV3qO0HxOQGBxPrXtY= Received: from MWHPR04CA0037.namprd04.prod.outlook.com (2603:10b6:300:ee::23) by CO1PR04MB540.namprd04.prod.outlook.com (2a01:111:e400:103e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Mon, 19 Jun 2017 22:08:17 +0000 Received: from BN3NAM04FT033.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::207) by MWHPR04CA0037.outlook.office365.com (2603:10b6:300:ee::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Mon, 19 Jun 2017 22:08:16 +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 BN3NAM04FT033.mail.protection.outlook.com (10.152.92.165) 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; Mon, 19 Jun 2017 22:08:15 +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 65.03.02805.D4B48495; Mon, 19 Jun 2017 15:08:14 -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; Mon, 19 Jun 2017 15:08:09 -0700 X-AuditID: 0ac94369-9c18398000000af5-38-59484b4ddae6 Received: from exp-402881.sandisk.com.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id CA.4D.11415.94B48495; Mon, 19 Jun 2017 15:08:09 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Bart Van Assche , Hannes Reinecke , Omar Sandoval , Ming Lei Subject: [PATCH v4 12/12] blk-mq: Warn when attempting to run a hardware queue that is not mapped Date: Mon, 19 Jun 2017 15:08:01 -0700 Message-ID: <20170619220801.12557-13-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170619220801.12557-1-bart.vanassche@wdc.com> References: <20170619220801.12557-1-bart.vanassche@wdc.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsXCddJ5ka6ft0ekwbvJ7Bar7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugSvj+NYHrAVreSuO79nB3MA4h7uLkZNDQsBE4ta8xYxdjFwcQgJLmSS+ NH5khXC2MUq8+LmCCabq3eaH7BCJlYwSD3auZgdJsAnoSZyatw+sSERAQaLn90o2kCJmgSYm iZYJPxhBEsICiRKLOhrBbBYBVYk1+3YBreDg4BWwkTi1kRligbzEtHe9rCA2J1D4++SdYOVC AtYSn99PADtPQmATq8T8jgdgDbwCghInZz5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 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)(979002)(6009001)(39410400002)(39840400002)(39860400002)(39400400002)(39850400002)(39450400003)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(47776003)(33646002)(356003)(189998001)(8936002)(1076002)(54906002)(53936002)(478600001)(5003940100001)(575784001)(105606002)(72206003)(85426001)(86362001)(50466002)(50226002)(81166006)(38730400002)(2950100002)(36756003)(106466001)(50986999)(76176999)(6666003)(48376002)(305945005)(6916009)(5660300001)(8676002)(4326008)(2906002)(110136004)(77096006)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:CO1PR04MB540; H:milsmgep15.sandisk.com; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT033; 1:M1EIIlYRAKKezXlqBkC/IA7A5Tv2BUFySfPl9cbb1PcaPT3cyO/+TO3M9JbLuMKOD74vBFglm3hduzMOJolwDSRC+N4rur8rkJvbkZyCscncwq+TvoFaoNX++VBGfIO9Y74JmRb7I0PHp3kk7NmjH/Fp/XGlIOcYxKzGeNqHhU2l0pDBJ4TpSYlvm98kZeoOoqMUifmuAVSuJfaxketeeNRD4pNKLS+mdlpiAYtsb7Y8H01dWknBaMeWdicF7DGl7WbJsqudi9iCiK4mNc8GSYaB2st5/MYMBGAPRnlLSEpgCRRshWeS9lRT5hzPcH2HEtKDLyR6Z3kvinWjxKKSJ0ElaKrs8c1ytgxSXL9xgZdSEIx5h9tW/OCUX7Pc4fMYNBI8f6hTDp7frgxS6aDqUp1zixAwZxuF2LQGgv6P/QxwtET74xpd1SjGxZJZl8bvbeBu6VFH7+uoaCbg6viwxTDwLP4DGt43Io6WnVcYteq7Ouz59JjXBFwxYGFl+LlOW2ptVL2HdZwl/FYEWh7CyQ== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR04MB540: X-MS-Office365-Filtering-Correlation-Id: eb279662-5c22-4c60-0a34-08d4b75faf8b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:CO1PR04MB540; X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB540; 3:7rI8kcXbyzu+yql5gysGQj6Wm62Y3hpol3E3vaf6lGGfIMsMpwPHjdK9Cv1WsD8MKIaRz4c2KmHbWxuboUWYeUW7XmQLLzAbaUkVJBJW6XMVvdThAytzrNABDMHxMIoW4dEjbneUu4d3JGaRSaIq2n/e8BgbLJSNeT/kGLoErC+UsJNWeva9s9qGhmHPpvTDioztwUBKF2PLTie2nZNH5tqtzQG0j2nZS3QJLkErqlJBO49PGJxDdtOuaORqvGPGBAZKjAhLIqv2vA2H0APVNAegq0sSV+6SDKy3aVrNtA+vnBrXOJXkewT7+4g9FbPBb9Y1L4tUjhCRvi9pUWAloEsfz4rYdwLBm3Pur76uNxsbPKxltIu/G0YzOlNbyUSTHB/dbjpW4w6HPTgSBfoWmd08/a/bPr/97+ewLbh+ZOFzqC5Ta4n6mikQAEQt9lfrNsQThEnLnRJOhh2YatVE4w== X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB540; 25:Ky9Lsj8YMObPztlrSDw0+NqAQpiFk+4KIq0n2kW7ZrvAvqNn60GbFAzbOzoR8IY/gyrL1rVpFNwjidOfpTtHQ29aSRZ1ggnkUZ8grGjs7D3dJNLkqexN3oS1kqEh45I6Jizq5TERQ3kF5ErE8ZhYw/Yv+hargsk1zQnK7TDvaKV1QrVYt0/0iIu/zDDBK+8/ELTc34p+2ObUOiws+ipsvxVC0O/NuUD1EkWtZDW2+w+nsj/Z8XNlQFe8S3cWwpk8gN7E9QWIVK3XVXA0p1N4A1h7iCQL3teLbewF0iRrSaZTWT+5wI7tcUEr2bLJ8wo1L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495146484)(42932892334569); 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)(10201501046)(100000703101)(100105400095)(93006095)(93003095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123562025)(20161123555025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO1PR04MB540; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO1PR04MB540; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR04MB540; 4:gtLEMXx2wFGtlY4Mxea8SJqKTfdIoZjiq1md+sNOmTu?= =?us-ascii?Q?mi5fEibQ7Vh6k6BomqTaAnw4MX6mRB0YwnOZCL5pDgtrtP0jm3E/FJGgTc+a?= =?us-ascii?Q?47mongh1N2iXPWogwuzgIqV/mYDNfctu4uxfEP2pPAZvmj8X60I95GtfOAhk?= =?us-ascii?Q?f2kdYMHpLS1ll8zEOEIDXKTeh8yB94HhtjsS4EkgixzQF+NFMaO/+WHYeDDL?= =?us-ascii?Q?F5ZFtN3xccTZUa4h7JWUSumEtXpWDZBUWQ5D0++qK/LtbPUfOtTnQwM9MXxp?= =?us-ascii?Q?IX6icN8nBPpPB61suS+4WtT7Q5b0kI7mnXV1H6VkKxOFDEAJMWe/XBi1l8M5?= =?us-ascii?Q?Xr45llgeqclS1xnQH1Z/F6zHk/GDazl7brMS5Q8W7/acWYHjk+YcG9/jK7GB?= =?us-ascii?Q?nNFGjLTFhkKBntq9zLTqbijwFKYPur0zuSTPVKJFBNp+NUzQ0uBLcqDWdlbb?= =?us-ascii?Q?j8pSQ3TQMdyvPsxnU23gMGRbBsSIHs/BmyaaeTPS53h1hJrdTYwu8OFj7oNX?= =?us-ascii?Q?zzXOFhiAdNr4X6MZtIstEGgPp/iMx60GNmBQu5tlzY5pFxDqNN1IINvjDuts?= =?us-ascii?Q?Mo4Zju30M9sQ64BtJVzQTGB6MCa2sGErV8+nnu6Y4uJNySoAPZ4qj6lQFITQ?= =?us-ascii?Q?6B4rEQvo8CaCXhiYt+OX/+QMahaD/2mosc4FlvdmGs+8fMqFZAOhoUBYwZyY?= =?us-ascii?Q?yUjJdA0qwQV5ahSTP6HPp7t3Y2Z00/lT4ytl+wIGpSm9bBa0do6nJKBbYMpJ?= =?us-ascii?Q?UZhoaxC2C96lJj4O2PoGbFrLTnvQufS4vJpg/4Hri9i10+nyUKaYDEU4ZO3m?= =?us-ascii?Q?mgEIQilTSekcp0ooWiHISX2Kk3/cGExOdh8Zkpfzw5b2HWYcUOUejb3hSbY/?= =?us-ascii?Q?0IkWBZyLq+/Bhz+ivEgl80Y6kwo7PxFQhsIzytBR/9IM5ifmdoCWc+aJagzC?= =?us-ascii?Q?VE7i/82sG8+Z2FBSrGxBixzmT34g8JlDDwDrrp7DKOdIXybCiQVANepUe8y9?= =?us-ascii?Q?MqRL+9BlTB1R8GNPha+bUOsHzCDIuZ+oLzplzfZ17bTMh6HaWV3FSa2f+EKo?= =?us-ascii?Q?IzzDpRPp/fiByaovxZQvsrG1tYvbqkHkkmZnVCZiGsYVIMBrBVHXpPh1gJ+d?= =?us-ascii?Q?3o7WTmORYb35HAUuGg99NMfkjyHrisYhPlf5o9wFG7FFkTkVkocHQUHwj+Wz?= =?us-ascii?Q?U7H82uZhnYanyWjZV456PnCatYgoXTaYD4+E7gW9WNICxXwEdwczT4ohjE6i?= =?us-ascii?Q?zQlu8sb8KP4rcqhpUNn+1gILzDxQGf8ZTwbwS0IKHysvcdaNKUEwLO4G4Hw?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 0343AC1D30 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR04MB540; 23:VSKrW74WgP9erl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?us-ascii?Q?iJCoU0X/py/FSfMSaQ7gZqPsWkyElXpb4jBkzdnF2GPlz5otUlg/SFjZwme8?= =?us-ascii?Q?a+ccxS6vn4pymL0uO0WbdZcdSPzSWxknRFNPY/w8n5m5OcSNlEC58oBCQcV+?= =?us-ascii?Q?LxjH+XUHRImKOAIrZ8aB7+1LLZDppgBo+IeyQdDmk0cBMEWilUDj3RUDdM3I?= =?us-ascii?Q?KYncTzd1oCUn5iv/tfzDqM04tSsvrTBzsAf9FuDpAhbj2igpHzVeiuH3j0ya?= =?us-ascii?Q?yhRddAhWBFL3KIaWmDvVzs+eH7ecnESUUydmt5K0NHanq8cNYe5LATUDrhGL?= =?us-ascii?Q?A0tFHBQTL+I6XJnGdxLwnKYCGxC5WfOC+582yd47kxJpFo8Sgl0PcAedmveF?= =?us-ascii?Q?3trZEY9y21Yc+6w+DbDniVDAPb99zYVUlcS+SwG0CeiipXU/HdV5y9drUAhg?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR04MB540; 6:4fYhKv5vmfCdOyX0LLqMIzAUWGINBZZLoQlj0Op12Gw?= =?us-ascii?Q?EjgwRebhqOjMknuOzudP30LIrPUK8zD/fbFMykUVawNi5GUjMNymWrJv8fUw?= =?us-ascii?Q?wlKwab8D/vvfq0JVEGZ+ec6VPBc0eoVjDvN6oMe9fcLj0daiGaM7MdoNsXpk?= =?us-ascii?Q?9TgyKvDws50xwvPQv5Oprt4UwdltQ8Aq4BWczu5kc5w5ajIukPnleCPlIcEV?= =?us-ascii?Q?c4oHs3YP0MYmPiq1Tsw+H8bYi7mC4E2dPNu6OIaOCITiG2CABLyrN65OaGwX?= =?us-ascii?Q?O84SrTjqYP3ZBfZWquTZYNU+Up0a4wuCdbUNHDd2MMh+QOoco0wYoyGatdI1?= =?us-ascii?Q?JJptVH35/Ech3BuOoI2X+AD7l3UZuwR5pDRi5+zr5VyHS5Jb2/iQJBt51CDL?= =?us-ascii?Q?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7FTUqmYabpW5rOBawR6hASc2GWYfjZMmCUVM6AUjZw39bSxKlfZRSBxMsCp0IFqc6WtA6kJeJPYduVddAh9k8zfYFUEzlgeu1VoMh8kh+zwRBaY82SEd2M5S4xU8sUTC5iAFtcq+C2mXo9ilH8FNGw= X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB540; 20:sNyxBG4q+RNxkfsx2heLj5WeM7jFThDDZH7NTuiK0kR3g3xgh/pd0JQL/NtRJg6TigXCHwrDyPF6m1GIOjep7RiW2cJTt+02vSM7LxtSUTFj4nQ59Fhsj6o522aTzDz2mzWMjhYKURBXn8GtUFZnQMa4s1ucQXFiKzvc7Zv1TjY= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2017 22:08:15.5027 (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: CO1PR04MB540 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 From: Bart Van Assche A queue must be frozen while the mapped state of a hardware queue is changed. Additionally, any change of the mapped state is followed by a call to blk_mq_map_swqueue() (see also blk_mq_init_allocated_queue() and blk_mq_update_nr_hw_queues()). Since blk_mq_map_swqueue() does not map any unmapped hardware queue onto any software queue, no attempt will be made to run an unmapped hardware queue. Hence issue a warning upon attempts to run an unmapped hardware queue. Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Cc: Hannes Reinecke Cc: Omar Sandoval Cc: Ming Lei Reviewed-by: Hannes Reinecke --- block/blk-mq.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index e7b0d69fdf65..c6218f32770d 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1140,8 +1140,9 @@ static int blk_mq_hctx_next_cpu(struct blk_mq_hw_ctx *hctx) static void __blk_mq_delay_run_hw_queue(struct blk_mq_hw_ctx *hctx, bool async, unsigned long msecs) { - if (unlikely(blk_mq_hctx_stopped(hctx) || - !blk_mq_hw_queue_mapped(hctx))) + WARN_ON_ONCE(!blk_mq_hw_queue_mapped(hctx)); + + if (unlikely(blk_mq_hctx_stopped(hctx))) return; if (!async && !(hctx->flags & BLK_MQ_F_BLOCKING)) { @@ -1306,7 +1307,7 @@ static void blk_mq_run_work_fn(struct work_struct *work) void blk_mq_delay_queue(struct blk_mq_hw_ctx *hctx, unsigned long msecs) { - if (unlikely(!blk_mq_hw_queue_mapped(hctx))) + if (WARN_ON_ONCE(!blk_mq_hw_queue_mapped(hctx))) return; /*