From patchwork Thu Jun 8 17:33:55 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: 9776155 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 9D2C8603B4 for ; Thu, 8 Jun 2017 17:34:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 855BC2521E for ; Thu, 8 Jun 2017 17:34:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A09327F17; Thu, 8 Jun 2017 17:34:34 +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 A7AA928520 for ; Thu, 8 Jun 2017 17:34:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751477AbdFHReV (ORCPT ); Thu, 8 Jun 2017 13:34:21 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:5532 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751515AbdFHReI (ORCPT ); Thu, 8 Jun 2017 13:34:08 -0400 X-IronPort-AV: E=Sophos;i="5.39,315,1493654400"; d="scan'208";a="25181141" Received: from mail-co1nam03lp0017.outbound.protection.outlook.com (HELO NAM03-CO1-obe.outbound.protection.outlook.com) ([216.32.181.17]) by ob1.hgst.iphmx.com with ESMTP; 09 Jun 2017 01:34:07 +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=iemGmy25JTAwXHzONyE2iItilH0i2S7PDdC5dy/5DFo=; b=sjqdbz16IExju1xHQJdf0RVTdmAGExEbaT2HJ2BQP7luUgRw6JCaUe9XnfB9e6ERkQZ2ytFSD8glBccULdF9Q4XgzGZEqHyz11iJostb6qDY1LRb6yYF//CGBYoWhX3pJIWQWcVHRAW8U/m1ubgH1kzXCDl4sbgKIPWz4Y3mAN4= Received: from MWHPR04CA0061.namprd04.prod.outlook.com (10.173.46.23) by DM5PR04MB0413.namprd04.prod.outlook.com (10.173.169.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Thu, 8 Jun 2017 17:34:06 +0000 Received: from BN3NAM04FT045.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::200) by MWHPR04CA0061.outlook.office365.com (2603:10b6:300:6c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Thu, 8 Jun 2017 17:34:06 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; fb.com; dkim=none (message not signed) header.d=none;fb.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 BN3NAM04FT045.mail.protection.outlook.com (10.152.93.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1143.11 via Frontend Transport; Thu, 8 Jun 2017 17:34:05 +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 C2.69.51736.B8A89395; Thu, 8 Jun 2017 10:34:03 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Thu, 8 Jun 2017 10:33:59 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-19-59398a8b8f5b Received: from exp-402881.sandisk.com.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id ED.E7.18148.78A89395; Thu, 8 Jun 2017 10:33:59 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Hannes Reinecke , "Omar Sandoval" , Ming Lei Subject: [PATCH v3 12/12] blk-mq: Warn when attempting to run a hardware queue that is not mapped Date: Thu, 8 Jun 2017 10:33:55 -0700 Message-ID: <20170608173355.25898-13-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170608173355.25898-1-bart.vanassche@sandisk.com> References: <20170608173355.25898-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsXCddJ5kW53l2WkwdUzahar7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugStjzpte5oLvPBW3T69ib2B8x9XFyMkhIWAisf/KX5YuRi4OIYGlTBJ3 19yBcrYySmza380OU9XxZCcbRGI5o8TDvU/BEmwCRhLf3s9kAbFFBBQken6vBCtiFrjCKLH2 8nc2kISwQKLE7yndYEUsAioS81efZASxeQUcJGZMv8sGsUFe4uyWncwgNidQ/NrOJWBxIQF7 ib0N36FqFrFKvGmqh+gVlDg58wnYTGYBCYmDL14wQ9SrS5xcMp9pAqPQLCRls5CULWBkWsUo lpuZU5ybnlpgaKpXnJiXklmcrZecn7uJERIBmTsY7z7xPsQowMGoxMObEGEZKcSaWFZcmXuI UYKDWUmE96gBUIg3JbGyKrUoP76oNCe1+BCjNAeLkjjvOZmpEUIC6YklqdmpqQWpRTBZJg5O qQZG1amaxeZhHnnZETVNXsJb1hw6IOO/dHfRg7MPurYuqXZtamqs9Csuuckjc+G3ke/qmSkx Eku7314J0V66nmVr2CS1bvkEX/Hse78WrWExKW9gahNlkNvX7K/GfutQcuvDUwy87I/szDtq mG++qH1f+UlO0fnsxnv7BY++2Tsn4eOE2PflaheVWIozEg21mIuKEwECgPpafAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJJMWRmVeSWpSXmKPExsXCtZGTTbe9yzLSYMMeJovVd/vZLA7+bGO0 WPBmL5vFytVHmSz23tK2ODS5mcni8L2rLA7sHhOb37F7XD5b6rH7ZgObx/t9V9k8pq05z+Sx fstVFo/Pm+QC2KO4bFJSczLLUov07RK4Mua86WUu+M5Tcfv0KvYGxndcXYycHBICJhIdT3ay dTFycQgJLGWUOPD1KCtIgk3ASOLb+5ksILaIgIJEz++VYEXMAjcYJe5MmcoGkhAWSJT4PaUb rIhFQFXi1Mt+JhCbV8BB4tClO6wQG+Qlzm7ZyQxicwLFr+1cAtYrJGAvsbfhO9sERu4FjAyr GMVyM3OKc9MzCwyN9IoT81Iyi7P1kvNzNzFCAidqB+P1ieaHGJk4OKUaGMsiXr/++jNQaOnq E2xrp3xbdDBm/zypa2fuH24XM7bhW8q/RHNu5aNjOYbeG+9dXJnSaR3w1d7ttsCEv3267Yof b9SlGK/XqLsu97zuV9v+bEP/7t8dt4PeH/Fu8Zu/+NMqwfrnwvySmglr3Vse/0m1SUvbdFH6 MGvj/YCYNTtOX7Z6LXouaocSS3FGoqEWc1FxIgDFKQTrzAEAAA== 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)(39840400002)(39850400002)(39860400002)(39400400002)(39450400003)(39410400002)(2980300002)(438002)(189002)(199003)(9170700003)(1076002)(50226002)(5660300001)(76176999)(5003940100001)(50986999)(77096006)(6666003)(54906002)(38730400002)(305945005)(189998001)(86362001)(2950100002)(478600001)(2906002)(47776003)(72206003)(4326008)(36756003)(110136004)(48376002)(53936002)(8676002)(81166006)(33646002)(8936002)(356003)(6916009); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR04MB0413; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT045; 1:CfRdisjp/8Ne75VfNexCsft/ctvfYyiaGnhIVxefohvMNkwAcrtYH3OuYry3Gx7MUeyEitXnV57Y6+eGX+55+WwKPTzvmwY+BJHbYs77nFbFvoAowoX0J3apDRfGypY1xPLNkXBo6PGOeoNM0VpCagZ1sG5eBKgNn7q0gyzclEelZTq0OFfKtOUlsUTCEhrPZ04xrEOKb7A3bVyoQBYcIGTxl2+11TbVk6Yk0ss/QRXor8nh70RrTWykjIqgGTRtuVNl1van4TZzS4WGtvq6c5NZ4FKc4U3GHLUTUVZJAJiHQk03erx+b5Y0mOpSHyDVpzzTAOfCsuQVu/2ReLXRj25z7gmtzSBH3Bsn7c8l6Ci36/9Kk3Tdm6oj5sg8Avdtac5rIN5XdM1PaNu8bNnBphoxPapqQMKdkI0y0GtiTox8BnDxYoVvkUBRG7UxpSdUuD8aHbuSVNdeBh6P/jEw+wwpp1s8haalnUhdk9QIdaoFX2gLSHyVjPbB2qNyV6ZJS3Dk/O0r/g/OMIGXTJ89gpQ33c0mWGYsjGPKJn1W2S0ema/8jGZtjaRH7Gr0QDt5 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR04MB0413: X-MS-Office365-Filtering-Correlation-Id: 764cba48-14b8-417d-08c8-08d4ae948ff0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5PR04MB0413; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0413; 3:VqAmLu0dq2PSpsaeRNWJVQfbeYiAFyZtkSD52AYq6MNbmq1tOQlgg7H0C86qvBI4l6RLUR061+nQwad2DQ49lEwY9ut88LTHxOVu1nr1iNCoOQ9DAm2zdZS/gEjca5OapCJ62ofAma/6u5lXlm6RoPFj7VPritisKht+qi0IwJvJzIUNmuUp0pcjaZL97v7R2/zhL2MPigWDzfNZWQMzMj5rT42maDNvHC1Y1T3r1jv+BuMv+8516U8gq1ZXAnCUsc8yz4K3NP/KQbAn2LPijjFysQiBiNA0x5kQiJcExg7I34m82MnFkFp5/7O7Ey8ATpGekzu+TgVgpHPX6xPb0XmQw3l3cnjc+bb9YjyAOksFCY2/1pBHTH7Q5OGvakLLRAlaD4QGK5nL7Q4PypKz0QPTbQWw87N1pHBDSh63YRmfZvRMG/0VzQlPAbvEs7Wgi/6rUNqV2+UOvjAn5d2ONgp32iBvPrzF62MhHZCUfHoSdjOY3xeXnazNnR1KMgMX X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0413; 25:p4NxP2t96zPIEnQwkPb+T/lkKYE9CyHHxqhZeHUs1ePmKyI5/Xt71llryCFW6uyYyCVOz23eLHokLLwWSQu0qq8Kg7hxexRobgnlQu4QcICG1fBlazBCA7UuGyvnyiCrSt796KUialt0Iudp4VYKGHIJs0MLYgiyPiD0Xyqor8182v25M6IDgNO7ZgERncPnV/CHbczZmq6UNpVt3GQjfgX2y+IZXxH8Z0q6w3iSKrU66VO6THlSo8NAPy+JDleEKqYp3t2MhLzrFlf2cExWWr8YmXa1ALA+OYjHBQCdVL+K2/m47gw1LV6DpjEUiQ+44QY1WGBoyRxNr4kwlYPm5bImLzxAL2b+ZKI9ViQsW7ZDIkC3arzdJy/py3YnSrY14l3GUniwoTWrRCH6x1IaJizPm1ulW2AknbukCX6E1zlwM9GuUjo8J/8R2r8dkHxdRJ4fvtX91GBNMNfWnGFuftf7VRbbtvJSr9aN0ZDA338=; 31:nFxneWPXMWHSjlinmOpraDB372Y9/lvSzzzeRDrqcKE9AJmAtthmowm7uplMyxG6RFmy5oSsvPXry6RxEkkHGBTcgOIF7nS0WYEi8PYoOaFif9yjQhef4TcCduIimN9BrakO1vRCTMWsmw3MFi54V6I3oADYpuaecHMplXWVu8umlQ0B6dOPa0RpGHeh9VSacrjXy078QNVz+1YQXXI+dgtQxk7NhF5QS91jl+H6zQudvpK1ZGfX+7xpGJZH2iTPwvHNfOmkUMPXd9AKsy9Tlg== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0413; 20:N7HmbLp/wgLwoTLhRsdUwRdN6TB2i8/iWQ+J6dfSAfQeSDVs2PY4++DFiDhOMjwrQqY33XkvCYErR2L9j5Q8bDMe1Bug3T/qrFd2i0+N4T4FirY8/bddlCeyG6vvj1tUOs57aQh1ACkvJ1/wrXtrEVHk6QRcUyVyOF9wFYyptKn875QrNuoszqCuk5M2g7MeeC1Z3jRdKXhAnrLsJzO8SsPkmbq8K9XeQ5UaPMIrof/5OL8DQ1/UU4SzocTMMAamQMh+SJZ/3VXIl581NlTzCDdyhKbBDsx/84catH8jnIoIC53kd163ovi6E2eHJjxVkb8GWzsRT637MRYORJowNKVw10p2HY49fsry+Qd8W8/w0XBSMOcdkZoeN+4zCV+sYYmsZG1H2dphYslU13XbCcj8NRYFGU4kBXtz57TgK9wCl6ymHPcKmwWQMMlRaPPXaK9LXgxCh9917hpwe1Ti+BViKN0e64OlMgiL0JGDoEojpCDxN234aQSPg4D12h8O 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)(8121501046)(5005006)(13018025)(13016025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93004095)(6055026)(6041248)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR04MB0413; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR04MB0413; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0413; 4:w0fG6BrYg+MTjG5Y6a1rR1pbeCIATQpHzhBYBWgqGY?= =?us-ascii?Q?mRBRlkeL76L3uZadG6UscMj1HaFAff25bJh+IOZNcQmO3CGmPZIiRpfbxPe1?= =?us-ascii?Q?VD/DtAjeL0ke6PW9OlywZqD/b1NK0jzhTJZqjFARjo8VNBf4LdNuvWJTJzBX?= =?us-ascii?Q?X235NzmJ2U0QRZSsUl6OEwmRgr0FyxlvJnOR0hN9/3BBO0sA1togxjf06mvO?= =?us-ascii?Q?7I7GomsJ1FtpmuJdGk/ZIO+MXSDHgVBWjqkxEjsEeZ1PqnpWbl7Od9iiJCkL?= =?us-ascii?Q?dF9+91KNOEOh2XzZUtDsEm/dE3WmhFEa6V7XrxTx52RrtpOCDto2HbVbbnqX?= =?us-ascii?Q?nyx6BZaHdyihh18PodRTH8swCOcMx9SbPf1XBNaO4Eu4rIwdrDlUCJhsVRwg?= =?us-ascii?Q?FcmTF7VTOwZLIVEhwFqrZRw607PW67v2K4yR4rVhe7enhkBp9nRqhhb6Eusp?= =?us-ascii?Q?hxj0gBdOUody2yS6+Y9fFEZs8wTkKpehsg6TKCCu8h5npHqLrSErrgaz5U5m?= =?us-ascii?Q?7nplrDu5gdA3CRKZq/XBxS8B+hSlNdS6UXGng4RC/D08U/nGQXSxZvOUqGwE?= =?us-ascii?Q?XjDIXiJA5jqQGm9LKTGv3UGyWjeTE/QWSlRfll7vkyd1jvN/QWSpKKqlNseE?= =?us-ascii?Q?qBPC9QcdtNjpcHQELfX9d2AYB4iwAlI6FQcA/0i3CdWPZw/NeqvcjU6kzprB?= =?us-ascii?Q?nT6objRitkH/qUXPe8vfhqX0NTIdD3Rj5pBkofrbak+3thiXkjAWZ66I3mX+?= =?us-ascii?Q?P9Qga8UHOFTgtD1Z9/p61kWwJ71XDaruBdvgvpCsXmnQsyG3+CKuJR8svSMC?= =?us-ascii?Q?UpCYkKKqu3shYnJrK76X8QpwgK2dJZguSpjndE1F7gjj0R/6dAbaphgvu7R8?= =?us-ascii?Q?Ib7bD3CrBZfD9EFY88OTG+yW5Wv92zE7P/gw1x29PYu8TJkAQyz54qsLQYOy?= =?us-ascii?Q?rKLf9MkcdHgdyexufn8jS7Vo4swXN3z7+BETgnCkTSj8/OfvcSzk6L3jIfg8?= =?us-ascii?Q?5MirXpkPBWv4xIprTsLsO7ng3dkMdzK0Jme3O5WSULz38gZJL8Txospar7KA?= =?us-ascii?Q?+0fJ/EmhzuhxNCN4emZKeXqfZMDENhyLHTsH5i/J2QzxxaJ28TReY2h/UQOW?= =?us-ascii?Q?Gaf31fxxkS4k0BLlEQr9oH20Pz+pX32zAYpo49JZ7cLNaDEUudSGzX7Sbw0Z?= =?us-ascii?Q?RGkSM/Q8pqpG4MOKy9/eKIBV4j6DznIm2XQPeRW16jDSODsYEDNAX5PfRmIR?= =?us-ascii?Q?g5ayZ7SaPU/GXszbCTGvLwPY/fnPHkTDuwm6Y0bS3CJ9hZ8qFRuONGseBtLA?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 0332AACBC3 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0413; 23:4MnY+cg/3GAUUHJrnGREfua9+QUJ8h0/udky9p70N?= =?us-ascii?Q?l69QcBltk+XpHD0eHS4jHObpuh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13E5AyGf2nLoCGzrCwFN9u+zahX/u35dPzRQYxmQH1Y9P3kX17LzKNNLRCR64ub7RW7bCynJxkQHgiuMPK/zamGLfwfapJNxmkChokMpePjaED9mvin0FMglW9OUquJhPgIlxYIBpbo+99ScO9qc2zEl/aYHGVvL3sYin2nPTyv9xq3MZs34+IzR+caWWJ69yZAOwgGBMqQncm6QaflTsMK3xEkFFtRSSxQ7YqfbX7KFtcLymqg5dl; 24:dQ+JBB1axx677A/kXVnRebTd6l7Ua/xUOpk4eJuJueUZhkWpmGh2pN3Lljs+1J3/8dYjxsbKx7WOwV1vYni5WrOtKaj8LxzeUEn2uQkURYo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0413; 7:ZByBW/bcoDFjIJ6rHHyMzgKJT9dVmT8vTjrpKWFbasQlQFNQxNXvdMG7niSDqm5U7ghyWgBclMTPvAnrAwITjDK1ea2rJFSGYIxr5UAuwSTIa5f1q38lInS3lOEzEWecw7lla5JswIy6n1tSV4JiG9aydofSAsedqwGhuY3kryGwSUU3arqlWb45ZtwKw47YPSQXTpPV0EslY2Ml5GbYeZojr9WHAfzbx+n0lRYMIEVJ45z0pU1sxCy9HZIG2tbxcXsHNR8RMjDRfXXZgarkp+jBS6udWvX5a86dmbAEBD0mRN8bNABuxTVYZ4gA+pzYoIE89K65ynmgelBpO1te2A==; 20:XzNYhQG2gZ3pfRm/tA6mO0/Hi15Ul/fkUK6D6ApIY72RUkbLRCrPSvCUOa7p6Ra6uarv74eqTbtoRrKoy7swAuWPSRhY7m9cbTnqqM6V1AhbddGev9SWHXCvyRge8+xzPz6a+ZhViXA5KN1gM7Jd4lJm1rBghsmOMTu4lwdryDM= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2017 17:34:05.3410 (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: DM5PR04MB0413 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 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 --- 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 0f8c011eff97..689026d3c4bd 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1091,8 +1091,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)) { @@ -1252,7 +1253,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; /*