Message ID | 20170531225246.26261-12-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-owner@kernel.org> 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 A0AE860360 for <patchwork-linux-block@patchwork.kernel.org>; Wed, 31 May 2017 22:53:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 918752766D for <patchwork-linux-block@patchwork.kernel.org>; Wed, 31 May 2017 22:53:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 863EE284D2; Wed, 31 May 2017 22:53:10 +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 170902766D for <patchwork-linux-block@patchwork.kernel.org>; Wed, 31 May 2017 22:53:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751033AbdEaWxJ (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Wed, 31 May 2017 18:53:09 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:10967 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751186AbdEaWxE (ORCPT <rfc822;linux-block@vger.kernel.org>); Wed, 31 May 2017 18:53:04 -0400 X-IronPort-AV: E=Sophos;i="5.39,276,1493654400"; d="scan'208";a="118884967" Received: from mail-bl2nam02lp0079.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([207.46.163.79]) by ob1.hgst.iphmx.com with ESMTP; 01 Jun 2017 07:06:31 +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=DR6ociu7JuWekC5BluPpG5Wo5xOl03N2PyRRg6I+H70=; b=BjV9apHbNKW0Pm5HljmPPfkbbYSxeaTXZ7uS+hefifKsT6XvEJxOop4cNsf5VBDG/mS+nBoSKOgxB9UAe8WtH0el/SUkqEOC13Mn2zX5o6LmjoXzms6wHnrRDjDlMmRHBFiOomL/8DaXJJKau0JuQqSF6NL9tUWzjtmbWox9AMw= Received: from BN6PR04CA0057.namprd04.prod.outlook.com (10.174.93.174) by CY4PR04MB0390.namprd04.prod.outlook.com (10.173.188.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Wed, 31 May 2017 22:52:56 +0000 Received: from CO1NAM04FT026.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::200) by BN6PR04CA0057.outlook.office365.com (2603:10b6:405:3b::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Wed, 31 May 2017 22:52:56 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; lst.de; dkim=none (message not signed) header.d=none;lst.de; 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 CO1NAM04FT026.mail.protection.outlook.com (10.152.90.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12 via Frontend Transport; Wed, 31 May 2017 22:52:55 +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 41.05.51736.6494F295; Wed, 31 May 2017 15:52:54 -0700 (PDT) Received: from milsmgip12.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; Wed, 31 May 2017 15:52:50 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-a5-592f4946ba7b Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 50.2F.18148.1494F295; Wed, 31 May 2017 15:52:49 -0700 (PDT) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Jens Axboe <axboe@kernel.dk> CC: <linux-block@vger.kernel.org>, Christoph Hellwig <hch@lst.de>, "Bart Van Assche" <bart.vanassche@sandisk.com>, Hannes Reinecke <hare@suse.com>, "Omar Sandoval" <osandov@fb.com>, Ming Lei <ming.lei@redhat.com> Subject: [PATCH v2 11/12] blk-mq: Warn when attempting to run a hardware queue that is not mapped Date: Wed, 31 May 2017 15:52:45 -0700 Message-ID: <20170531225246.26261-12-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170531225246.26261-1-bart.vanassche@sandisk.com> References: <20170531225246.26261-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBLMWRmVeSWpSXmKPExsXCddJ5ka6bp36kwdcfAhar7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugSvjw7r/7AXveCq29c9jb2B8ytXFyMEhIWAi8eJkVBcjF4eQwFImiZ8v epkhnG2MEit2HWb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rSk2TFzqx1 fh0jHV9Ytvz50eDURwpXPQUM7+ufjlM59Vn9WZDbt7jO34aT19k6JXSuYXy74PaWDdw2f45X nF0sd+6+sPyqLKWvkw7MiTjwvuG/EktxRqKhFnNRcSIAeA5E0ssBAAA= MIME-Version: 1.0 Content-Type: text/plain 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)(39860400002)(39400400002)(39410400002)(39850400002)(39840400002)(2980300002)(438002)(9170700003)(4326008)(48376002)(38730400002)(110136004)(5003940100001)(33646002)(478600001)(2906002)(54906002)(53936002)(8936002)(50466002)(106466001)(50226002)(5660300001)(81166006)(50986999)(8676002)(1076002)(76176999)(86362001)(72206003)(6916009)(6666003)(2950100002)(36756003)(356003)(77096006)(305945005)(47776003)(189998001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR04MB0390; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT026; 1:R0KdE4W+GKl6tjRIH6RWMqnelFq1XYdMH3U0ET4YiddplXU6p3PDESXRZGBGJf/ypzll0d/VPGYNAS1mShdHy7RkU5cWX1p+zYxojVLPiy5EvvCWgNpZ/4cQ33rqgMgxRK9U+ArIxJ3wI2f8rFG+HFseBy6aO7aScybdzi9irUqwMBX/vu1bFyxZNLBJjuNecZ4taF8wSKSoRECy3mw+zH7sh2wYBNtu9zIAS3qBP1ZWC0lDDrm5+OvCoT0tuKfM4qv/hUcFC3P5a95mGVztiLSC6LeDfGCs+wo+xuiufEiOKgEhLArQyL7VFRcieMw5hFbjlWNRuag9UCiHOD+ntafJuucoZ/t3vUNOJJk0GAy4MvarFoK9kVdu3par6K+9CuiIOaGEUTkYyqCpToipsE8Xv5o7lJPi86cg2e5Bo/dfOm/4PjhqQBvm9gaQbTXA23tj+khXnwFcPlawM1SSs0guJnBLcSfjvOwrH2dcq1c12zygaijLSFe/yadx5Pg95H9/DwYZFlD5+Vr3+CXmEaj7KYjPlAs0gSc1yPNJvfo= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PR04MB0390: X-MS-Office365-Filtering-Correlation-Id: f679b909-f238-45f9-98b2-08d4a877c6d2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:CY4PR04MB0390; X-Microsoft-Exchange-Diagnostics: 1; CY4PR04MB0390; 3:lFMcvjEWsU/h7dwK8MUXloO90iw+NJd+4moWoG1UnOoashWHs47M8469OI3MiusdvPEBtIf321z9ums3Gw6MbF+2wwOR8X0N73renYINw4Ocr4Feai0Efsgjx0YQe0FtVymaH/9chHRx9VsXUBymMG1tqcLRcoPnu4We4+k+msEBzZnUQUPlhL7PdPRJLqBhL1J1BI1DWUdNk2UXsA43f80d0wZPnMKH0kmVqgXnNdUS54G4PFBHxZy/rB6VCXHr3agkoMcNN2yLOJop4nSPePIIYRwKTSZzYgfXOjn79+tEP8+ZmNu0or5KYagaQjDvq5aIhi1f7z3Vgimwqs+ydCOubSHwEHG55I3Tcmb70mAYWbSCds1gga3pcLa6GS0zjPH9lBB7nKFF4yK8wSp3lqlKifx8t0zleH0jSrW0jjXrsvFvNyhL6iW47WO/mH7fJHoctpLdR1kB/8wRa/v2PGT7X6Hko9iLh9BiUTVntVLG7l93xbHaDt2BE9oKRhRB X-Microsoft-Exchange-Diagnostics: 1; CY4PR04MB0390; 25:BcCN9JYPvNfL4PcwqeJ3uJYZOlRj96jifkS8VvV/mg6hUsolqj2B6+MkcG/Pghmzdm2uriJ4jG1FZl3GsYXbPZNXdKXMJhe6DLxXe0xo3C7iN1lptpm5XpAZ4ByyXlcpBEdFCESMiduzitic2iTLm+M63YQCfDU4tVcFYTVnb26zTCM/b6D8Iq2DdWBJQR2vguKxRHcewV4MD5oArfogG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LqhDbL0geqYldJ3uEba0TMHB1NDhvP9TmqRS16xXNsxzNQHcpVDf/5S1RCuaH X-Microsoft-Antispam-PRVS: <CY4PR04MB039040ACC7A8061289B1ED0F81F10@CY4PR04MB0390.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13016025)(5005006)(8121501046)(13018025)(10201501046)(3002001)(93006095)(93004095)(6055026)(6041248)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123560025)(6072148); SRVR:CY4PR04MB0390; BCL:0; PCL:0; RULEID:; SRVR:CY4PR04MB0390; X-Microsoft-Exchange-Diagnostics: 1; CY4PR04MB0390; 4:CzN6O6WaP9ch9VMxWS0xa1USgbuDm941KVTJlcD/ZMprbMzKDn0PoTrtAST7H9k8vZkjL19nI34l26xiJfBr7M48JYUhu0UDVGtuVadOEker394qjE/Dw2OYdl3WaATTRsC9x6K6VYYgdPMPBWp+GfqwT9W0284qs6D805HLJNq2lqcXdGXyD0K2+00MWVK0bbIhjlohZGhxrID65nIloVw7Tvij2DGbFY0L/Fl9pzjdzm0fH1d7KTfyEVaqSEjxeviXZksjt3Wgfo+o/arvDx4lhOrZO8R1vSn7V3aLf2TSWg0YXYi8BtL0ewXw2Sr93XhZrXTZg0ioTs4n1ygdTVjYXMqapX4dexqRgOTjjJhkCMbvmiwF5URWn352OQwLpiKMp9Lu0+pYBYxQgG/ap2bwqvyZ279t2Pr1nAD0kZzySfCYUS7dgeo+te/iSJ+80E5nuPbMJ+SAWRqkycc8nHOTSLSx3+GOZjxRALcy4i5buGR6GpqsMjuaQWDOoFdmc1M46bU1BOPyGQD5jHo7HPOMGdVN+ohhNllU0boJuujG3gLTmA1gjKshssCxUc57iXYlVqIepMjpAENxje7/N0mHew9cw/RkfHzYpmS3Yj5QHDpAG1iAXtSqxAZOVmSJPNxB1QyagVW/zhxhuXhLKzqJ0zliToz2HuTQu7PstMnifYIKeAc/b+MndqxtO18Vv8vI07ZkBd17vTltfLwqiBtjrhziaF64kqWvz1CVnTNEwU1nuah0q+sNoiUODxOdN8exFb0hHhqCb124WixSWMm5KTqLAab5oJPdOEMzxsuCG61gkuS6AK3kvWoTLfmszyQR9mZ0tPEW5c2QJkDvoi+5j0xisygpjb0POpig1deSOj417/e4TMpBsN1ZCUCeu/XOpSEPJejdt1a60Z8B74CdbR68u+dG1bNwPD2Rdx U= X-Forefront-PRVS: 0324C2C0E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR04MB0390; 23:2ewE1T2ikC/fEJZkWup4mh5SDrhP8aCmJSue3iOkz?= =?us-ascii?Q?tjjeXLGpWCqHW8PH6RutIcn9ygBQ5DI7jtWg/9U61l8DIoKC/eyjqs3NLCdU?= =?us-ascii?Q?ZnhRua7X8IlJTxANPZRgQq9QFMll79l9miNxs+n0oIee+xr7FE2EtmlYWD8q?= =?us-ascii?Q?MR+KZjJYywVlQ64ZgEZPpnooVRJ2ZBTquNtyBB462T9Rbf5xeR397nxSWcGG?= =?us-ascii?Q?OQ65+07xQYMZmLJRulZDOTrKEEPgkv8P1I4Af4cUOxBpSHAOM95BAOOQ9sZg?= =?us-ascii?Q?fBXNYeT1mWuMi2Xm6DDgXXzyOL6jwXA3zqfLgCUke6UxnG51yIKW7jJciUCc?= =?us-ascii?Q?Y0a2kezsKLJVeUdDb6JjP7tStv9JL50MlAD9aJ+9OpEXCfCAjyiQTk5s3S4i?= =?us-ascii?Q?xJ5N+f26VPpG1aGVtjq9pL3ZrRknwgUKXv0BUrL4F+PfMliFMljGVPiUZ4h1?= =?us-ascii?Q?TcxLzFJTaGO/FjOkblcH89vTW4SsXWwFxLoiOj86RydSmIihTfIQR9uSEt1/?= =?us-ascii?Q?l2mI4hVvK14sHqcmD9JrmT+7Vdye/GcAgIatjCfQXB6cjg5CM3KjPu4hXrPr?= =?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HwYqxnEK4EYiLG41B/DfUYUxT0t/pTwoeKV0glmH+yA1sxR0xz58Yhh13vRUsouZ8bzC3JI5itCGqBrK3gxUeUmruO7ZsHiAXUX/RxEE1Bnsj1CLgXfpKuo=; 5:du6A02pNIbd/Q+8igW7deUtrRpkRKPKIhrWpIBjtGlHl7WD2Npp+TQ90pQRDEiyOvnz8h2a6JMElFmcAwpLIxQ2S9e9X8/JW+UU1xDjDsV/3CUQeTbhaq/RJRkdjLgMAK/X1lWWo719EX+wJTr8ITQ==; 24:QYl2NcClkn2Tp7A+6wZ5lb+w65SEsIz7ZtCy+HdN+3Qmm1ZGWwl7MMqQNAAWbSutCDZ7DOdDwirVBaiC62Ttu1RBRTVJPqGBrQ+TJ4KvJH8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR04MB0390; 7:KiDZAWciQpUb/y/R2kQ1c2EqxnSkCyj2SbsuHj0D71bA/2R2a/2Bc6+pYvNn1xn4Ylej3RVmm4o7j3KulyqFcS7dBn4qkI9Fzo8V2hkW8IjGdiouo1n5AJsfW+iqg+K0NaZaowFtjPHtVPjEYjJcHKpyt2l4Xk1zI5HWer80wVvCwCxa/2IEum0Cnb3zOTPua7giPrYq+gXD/hviEx+7QyF74EtxD+ufQAtV9u+MtgmuhiAq1mDNLOamaciNvB9i7OFzVINpYvQBJ0JZcVkdUvAmfRzdNMm54aq0JUZw9pdmMXAreA1IZfhrvUEUUZUzF6ILYGVJMHOCtsvuVMeDjg==; 20:B26TB8+EN7BKtOFA8+w3CKsnNzDpbg8ivB3OYIhoj0W9QgsOc+3uW4yYWrPte86+A1V77xTvsIwbA3aevprQivWmDI3krj/fCvUZdyxAa1vpEld8PD8NNs2OD8R8E4NVWRUxRY4jHJP5e9tgcsyv0ORyAmGpEurgxYldLBOE21Q= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 22:52:55.2441 (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: CY4PR04MB0390 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Looks fine,
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/block/blk-mq.c b/block/blk-mq.c index b56cb3d9060f..12a627743842 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; /*
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 <bart.vanassche@sandisk.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.com> Cc: Omar Sandoval <osandov@fb.com> Cc: Ming Lei <ming.lei@redhat.com> --- block/blk-mq.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)