From patchwork Tue Jun 20 18:15: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: 9800067 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 89E9660328 for ; Tue, 20 Jun 2017 18:16:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CF602624A for ; Tue, 20 Jun 2017 18:16:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8194D281E1; Tue, 20 Jun 2017 18:16:16 +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 5E6182624A for ; Tue, 20 Jun 2017 18:16:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751120AbdFTSQO (ORCPT ); Tue, 20 Jun 2017 14:16:14 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:56102 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751088AbdFTSQG (ORCPT ); Tue, 20 Jun 2017 14:16:06 -0400 X-IronPort-AV: E=Sophos;i="5.39,364,1493654400"; d="scan'208";a="26836444" Received: from mail-dm3nam03lp0017.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([207.46.163.17]) by ob1.hgst.iphmx.com with ESMTP; 21 Jun 2017 02:16:05 +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=CTPRtR1iHcDk6WkFCFxbfAnVGoHETGufH8IxCWF/bZ4=; b=BsenjFu0QjQrFAjhbZaU/+tNRNNzyVEAv99g+v+/JjVQSp6zjvirM/wMClcff8RSte2YsvEFq7ElHnJEb3TWA4YVGYl65a+D0g0rJB3OygTOgvhWEGuSnvK4kjiVWbvbNmkST/8rrTjn177DEzopGIgHmeyMLbeRk+7x5nszWHM= Received: from MWHPR04CA0088.namprd04.prod.outlook.com (10.174.173.29) by BN1PR04MB549.namprd04.prod.outlook.com (10.141.65.141) 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 18:16:01 +0000 Received: from CO1NAM04FT050.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::202) by MWHPR04CA0088.outlook.office365.com (2603:10b6:301:3a::29) 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 18:16:00 +0000 Authentication-Results: spf=fail (sender IP is 63.163.107.21) smtp.mailfrom=wdc.com; lst.de; dkim=none (message not signed) header.d=none;lst.de; 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 CO1NAM04FT050.mail.protection.outlook.com (10.152.91.145) 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 18:15:59 +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 EB.16.02805.D5669495; Tue, 20 Jun 2017 11:15:57 -0700 (PDT) Received: from milsmgip11.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; Tue, 20 Jun 2017 11:15:13 -0700 X-AuditID: 0ac94369-9c18398000000af5-e8-5949665da57f Received: from exp-402881.sandisk.com.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id B6.5D.11415.95669495; Tue, 20 Jun 2017 11:15:53 -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 v5 12/12] blk-mq: Warn when attempting to run a hardware queue that is not mapped Date: Tue, 20 Jun 2017 11:15:49 -0700 Message-ID: <20170620181549.24903-13-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170620181549.24903-1-bart.vanassche@wdc.com> References: <20170620181549.24903-1-bart.vanassche@wdc.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsXCddJ5kW5smmekwbxZJhar7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugSvj7/LrLAX7eStWnKtvYFzJ3cXIySEhYCLx9NR/li5GLg4hgaVMEhd7 uqCcHYwSb191s8NUzd59jg0isZxR4sHJtYwgCTYBPYlT8/YxgdgiAgoSPb9XghUxCzQxSbRM +AFWJCyQKPF151KwSSwCqhIdR2eAxXkFbCTmfj8BtUFeYtq7XlYQmxMo/n7JaRYQW0jAWuLr 9/tgQyUE1rFKTGn7zQTRLChxcuYTsCJmAQmJgy9eMEM0KEucX/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: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39860400002)(39840400002)(39450400003)(39410400002)(39400400002)(39850400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(5003940100001)(50226002)(478600001)(2906002)(50466002)(189998001)(76176999)(356003)(5660300001)(50986999)(8676002)(305945005)(54906002)(81166006)(77096006)(8936002)(6666003)(2950100002)(36756003)(85426001)(6916009)(4326008)(110136004)(38730400002)(53936002)(72206003)(47776003)(33646002)(106466001)(105606002)(86362001)(1076002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR04MB549; H:milsmgep15.sandisk.com; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT050; 1:yjMXoURw3OwxtXAGJ3231W2dzvIDs+qN7Qc70LZBq6Lu+Zz+d7Y8ggu17jD1zF+J3kL+JTWHXEO2ZjUxLV5R4AKm5FxBp7HSdM64MOq2PUYCBq7f45A+gyfpcXrjOEyqeAG/rlKWjBC8U5baui7MQtmVB1SJCB1S+tMfXS5xWgGpQaTK2AnrujDM3d0grhLaEViw9uHdC2AeAB65PH92pCjrmMtqDxo5X0shTMlN9VEa4swVa9kU92cwm+MNjZKKecmLPvDQXHtO2T/Dfj2OJVco4UZAlnV2IOsSGk9eOoUaREF0s1fwKb8MNUAUUknZ1NhaC7xedM8ABgwyB5SwLx6Bhw0is2KuYLrzg2tCraXfl6oJESKCLavqpvSFkZyIW0ccBtz1//uBOIBiAPsIX2LH34fRDyoeJxFSwvWnqwUMt4L/8HC47ZLxZMIyZ6n8MIzFE15yydW/fcfsYtFb3dUS+PuGUfUCfUAlH1RQMMXhlWcnEpU2ze7VOJosKkGjWS9+jmTtXrgJANw0eohmC8KxAxOz9a2yvyleef9hDF5LK5laxO/SIJOXghIKIKoez5QKuxaXUrDTIykL8bZlgEhsYb9a4WiWPAXVWEv2A3tAHNVHEiHhu7+vJOequHHvDEIOrJnlPcOQkFnWTFoJuh+SZds0VHfPwF4lSzHbr67WYeb/0KfdZTTBZGLMi/sFVPa8AtI/03V/ZUTcLVhQW22lYhDOpzEcsIuNbjw5WKU= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c4dfe4aa-3cec-4ea0-6133-08d4b8086775 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BN1PR04MB549; X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB549; 3:umZqRjYWmFLRqoAWgHdUPWC5AGfXOj6gHXuW0cLcgrG8BuDk3w2Xusc2/zFr6DMmKZVJ/D2iH8HMwMSHoknHLsfxJtUoI5r6CINo6uKD1d4q8kW0sRW5wwJu9rBvlfrxkxHD6oYJiUlOxVytni8bNYqdcqUvkqYDSM6ed6eidGCQXQ4+SiQUF3D+x//f/uACYalgdybXsT2bOeY8T8agdYpptFrFvMaHYLzE/vC2fbtAi9jRGGI58Q/b2XmglSwjVOyqJr1zaFbAbEFs73VEXETbuMImLdNJCG8F7tvzmt5fJIJwiQpQPvY+j9H28fEIHcgdwRk9gnUVVREBj8h8cirryqLpV6XhnMPz5cNp2nFWyLNh12XJy3j2ZCRI3ZXnsRfXo86PQqT4aZo47uu4N73G1EfoavoIz1BBkFD1xjg/DYavy9Py88VYwe8lO5KFADQXrwkj1lR8WwGR45ElltNvJEyOCBPK+XzM9HOZgYixI1nhdDHrOr/iTIF73ls/ X-MS-TrafficTypeDiagnostic: BN1PR04MB549: X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB549; 25:vv/ORADy9G/t3LLWgd0llziTw21lqfAmQcgg0DgnzHBI8tVDRNGIydlqsdWoSziDDjTYTsMltH0yGT2TyAxE6VLTaIv7/8Sd5xAB9dPBd0V3eyT0d1K2gcSb24Ke1Jth1AajGg8+cWxv7HVBTiYvU/Tcyfzy7YUNP3Omyiv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9EpQVp0cnvu3Kt6Uxxkp6e09cTHQOr2oMRbuA839KQTLs5fTneOo365FRuszzrBiWsjS9nA4+tECUmg4ZdBl5J+LeUzpRdir X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(10201501046)(100000703101)(100105400095)(93006095)(93003095)(3002001)(6055026)(6041248)(20161123564025)(20161123555025)(20161123562025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN1PR04MB549; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN1PR04MB549; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR04MB549; 4:S89+LJ397rIlohXsbtkfq4EEqmWF3KgQX+GCuZrw0K4?= =?us-ascii?Q?FECB+dZijg6Yl82ZDa2cr6N7z7Fekq1Mar5GclZ/JbQ7ztFF2JDci1cvdZAO?= =?us-ascii?Q?vLHNROvR4DRUCahCDOwJRbobkuZIso40FlT0h5ZFR4j7I6sbSOrVTKaUpnvY?= =?us-ascii?Q?uoxKVq8X1OTXS16g3RJc1NpaOd9WkjQmtig6a+bPgV7UP8o2PPiCaNEY2TcA?= =?us-ascii?Q?1Nt2qUZoKuoNXMjWcsUoHK6sZ7m8xnfiPjjBC9dOKL4kKg4ONb3KuyKH64k4?= =?us-ascii?Q?rPSxlO6bGiDSqnzR9HOJ9UAlKeCtyjWasmCcOoQb4QMf1EaRmqsUVoQbAakU?= =?us-ascii?Q?hOFjtp6U93Rg3TU/16IW4wxM2UKH3emwnxkjZxVy231+iMsTl1dHACauACYv?= =?us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cBehcgYT7Mt2ZZvRYnKS1yBniFAw?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 03449D5DD1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR04MB549; 23:7TWcuhhic65SsAkik2ysLf/4gz0yT1DmHLezQ9DmH4?= =?us-ascii?Q?mKueuniamWfpgDnMbd5cAdYNp0Pq1N8huWEfataW9oet8wmRAKGZDsFjGbQv?= =?us-ascii?Q?CMclIt8++NLa7FyM3KJJc0PpHD0heJJlEsA4rdTw2ir5FBES83F6AaPr4hWO?= =?us-ascii?Q?LIjGSfrNGZz2AVP1O2pHF9s8vbw8KK2f7DHT5WPenJhGe4oM0xIcjsuRuM+Z?= =?us-ascii?Q?FdfjFftlM1loqqQ7oRugFr4s2W/mnum5eDZe+49XFm8JrfGWwuFWNKks3ZGp?= =?us-ascii?Q?IjpTGXKMG0Lyn56PJYz4pGim7dGqE1FQ1q6PfZXJb/c1hJgaUKD7SGS4qHH8?= =?us-ascii?Q?GABwLTLvTRb6xKu0Fzvgd6PBz7XRsT07uRMErotEbAlX1Lle+UHO19tEuWzt?= =?us-ascii?Q?KUjgwLbDhDsTgnL3Gv8YjLd1bSYTr9c0cPKWuqI6y7S11szpr37vwmg/ki8p?= =?us-ascii?Q?Zhvoxbi6tC9XrU1SCS5DIot6Mb0goNpEdoeaqInOSg/BBzVbKuTzLpclcSH1?= =?us-ascii?Q?qYJSf0vnuonbmh2RJtpZW8cGuH5QzbeUU6iVGIzLzs8C5PvefpAVPmdviyGv?= =?us-ascii?Q?SVZRAckPJq6Eb0HO36JQxIf64s2pFZeJdtGR+Twlm+5SdJjj80HrGxb8N71Y?= =?us-ascii?Q?HhfiyTpMlbQuhwJrLyBtpBKvNsVLSvfIuc5Tg1S5TBaoMwax7+pJY+dz2h4K?= =?us-ascii?Q?GDmstSCzNqKNIifMavBtRE7fWrI4E+wBLwAPHuHfcT63cDcwgjAx0UNoaOL7?= =?us-ascii?Q?TtbeNi5RlX7CW2vK/oAuOsX03Tj/fGt8b+ee1X4op0SVsLimY+6fJDFAVnaz?= =?us-ascii?Q?YyURqcv2JduDalfsDR4qO051HUjYeSrkRw/apczxvmTappfVAoaonB/m4a75?= =?us-ascii?Q?EKaraTQWwh6hsYSpPCx4mnmnRZ/wsggwRbVJGaq+iQ6bsm/SpZIXOjZYXt1E?= =?us-ascii?Q?Rm22TQvKI0mUfhi4hQkv0rlfXHH1vsYsphbYuVOVH8M99/0VbdzQRWqY2KCm?= =?us-ascii?Q?UDNnsWNQrYOw7FZfn+h9Gb6aHoNwApiO6a4KwEHmeu6noJ/Me6RZegP0lKOo?= =?us-ascii?Q?L9Oy+qLZNVqZo2dFfoxuepdZxX2EPWWEhZPcyinL3JliAw8Gq9YNGvQ8VbXO?= =?us-ascii?Q?EKAEP4OiS5ID63x0tSQbtN5oMfGH6R3M4/M410pNy1WfCxQtKypg=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR04MB549; 6:ZqKAkFDnLsh9H+d9dWQMbKvAsuTRCh/CzA7c5/0o2Ud?= =?us-ascii?Q?ErZIEoDwos+iaheuKKlyF17/+7/1Yb0ZNhtIowBkJniw9hRIjkIPzkU8hNI+?= =?us-ascii?Q?qcepdPcfpH3ai0J8aezcFEiqAWDZbMY9fipKY0NwqQP0Sek5vTQHhJUR6+w7?= =?us-ascii?Q?+0gjSXp0B7fPoSqKVDvYrTzRguAnsvxUDobP7Htwa92QluZnTplRzSIsN/ro?= =?us-ascii?Q?FxphEiUh6cIzV6sVT0VKkYNry9tLnrO4xDref88DtiUhAQU9o2x6OnBiYUf4?= =?us-ascii?Q?GijwWBJSXRio9CXWrw1lKKc5VArEi02R8YvL5E057rO9LH94amVD5cwspVRo?= =?us-ascii?Q?jKHJ6ENngGmegUI6d7wrrvHXiRGW0cWaLSKM0yCu8qaukW6/9xNrKoED8PVK?= =?us-ascii?Q?jNAkjVjx34QgDOh2T6qDKDr5LSehc3BxM31+Ccn7nfkT+543I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Sj4MPtCYcxu10qcQ1YZImBe5U1VwQ077iWDPAGAr7Io38dSQvqwynEkydSxiTqKhi+eOvIkJkuILZ2g7Z7k3f49eeT8Qum0LgIjzkLeY= X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB549; 20:WJRsZjOAE39yyB+L/1ocsEf+XwRuhErXvKnwnE+rYRNAR8Z+BBGf5fNUI7EmX8afNQev2CXBAgTKf3uqdo1DDyIZqcEzM44LsfrevUbRxwnX4/2RoNig9jUpPI0c5EOW8hq3fg4PMVMyOkDTagpYi7Q3Kv/ZuTLvHeqlAQysjgM= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2017 18:15:59.4486 (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: BN1PR04MB549 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 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 1d8050e49a94..1c4f1f4978c6 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1129,8 +1129,10 @@ 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))) + if (WARN_ON_ONCE(!blk_mq_hw_queue_mapped(hctx))) + return; + + if (unlikely(blk_mq_hctx_stopped(hctx))) return; if (!async && !(hctx->flags & BLK_MQ_F_BLOCKING)) { @@ -1295,7 +1297,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; /*