From patchwork Mon Apr 3 23:22:24 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: 9660695 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 872966032D for ; Mon, 3 Apr 2017 23:22:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 778932846D for ; Mon, 3 Apr 2017 23:22:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A5CE28469; Mon, 3 Apr 2017 23:22:40 +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 8836328469 for ; Mon, 3 Apr 2017 23:22:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751944AbdDCXWj (ORCPT ); Mon, 3 Apr 2017 19:22:39 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:57204 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751628AbdDCXWh (ORCPT ); Mon, 3 Apr 2017 19:22:37 -0400 X-IronPort-AV: E=Sophos;i="5.36,272,1486396800"; d="scan'208";a="8346674" Received: from mail-by2nam03lp0052.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([216.32.180.52]) by ob1.hgst.iphmx.com with ESMTP; 04 Apr 2017 07:22:35 +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=FYDUGfmJsDuvqpB0qR+OYI8eCTY8aIbvhsHTqOs/WvY=; b=A8H8VNc+ddY5K6+8lk26x0k6snwxb3Km3CM91chyH02zjjRI9fawbssG2f4SunIDQoXXYCYSL65ZC/iQcBuFCCr85IE35L0Z5C1BB0XF3LJrH9RLMB/CZABME1oCTMu4huAZfgtLWzON3dD3ymUxgdiR9R2thGdsVRCHfsMIp5c= Received: from MWHPR04CA0041.namprd04.prod.outlook.com (10.172.163.27) by BN1PR04MB390.namprd04.prod.outlook.com (10.141.60.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Mon, 3 Apr 2017 23:22:33 +0000 Received: from SN1NAM04FT044.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::204) by MWHPR04CA0041.outlook.office365.com (2603:10b6:300:ee::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10 via Frontend Transport; Mon, 3 Apr 2017 23:22:33 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; oracle.com; dkim=none (message not signed) header.d=none;oracle.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 SN1NAM04FT044.mail.protection.outlook.com (10.152.89.63) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1005.5 via Frontend Transport; Mon, 3 Apr 2017 23:22:32 +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 0B.D0.29323.739D2E85; Mon, 3 Apr 2017 16:22:31 -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, 3 Apr 2017 16:22:30 -0700 X-AuditID: 0ac94369-548749800000728b-27-58e2d9378632 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id E9.C4.11415.639D2E85; Mon, 3 Apr 2017 16:22:30 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , "Martin K . Petersen" , James Bottomley , Bart Van Assche , Christoph Hellwig , Hannes Reinecke Subject: [PATCH v2 1/5] blk-mq: Export blk_mq_sched_restart_hctx() Date: Mon, 3 Apr 2017 16:22:24 -0700 Message-ID: <20170403232228.11208-2-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170403232228.11208-1-bart.vanassche@sandisk.com> References: <20170403232228.11208-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKLMWRmVeSWpSXmKPExsXCddJ5ka75zUcRBqd6TCxW3+1ns1jwZi+b xcrVR5ksNvZzWOy9pW2x/Pg/Jgc2j2mTTrF5XD5b6rH7ZgObx8ent1g81m+5yuLxeZNcAFsU l01Kak5mWWqRvl0CV8aV7a/ZCu6JVnSv/MzSwHhDqIuRk0NCwERiX+dnRhBbSGApk8SdR4Zd jFxA9lZGibbPU5i6GDnAij7MUIaIb2SUmNB0mQ2kgU3ASOLb+5ksILaIgIJEz++VbCBFzAKt TBKrJ7aygySEBZwkZiz8ygYyiEVAReLYbD6QMK+AvUTzhgYWiCPkJRZtmsECUsIp4CBxZ1cG xD32Evv7djGDjJQQWMQqcb19EyNE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Message: 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)(39400400002)(39410400002)(39850400002)(39840400002)(39860400002)(39450400003)(2980300002)(438002)(199003)(189002)(9170700003)(305945005)(77096006)(8676002)(86362001)(106466001)(4326008)(8936002)(1076002)(356003)(2906002)(50226002)(81166006)(110136004)(50986999)(38730400002)(48376002)(50466002)(36756003)(5660300001)(5003940100001)(76176999)(6666003)(2950100002)(6916009)(53936002)(54906002)(189998001)(33646002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR04MB390; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT044; 1:Pi/A4mM/zgSWLgHEaxDt3dbyaMzPGv4qKGO/NeOm/qrSMDeQ4JHghu+gysYhJsWmns68TRKfMG+6hCuzsqXBHLdJJgc51gy1cj8nH+BMlVQW3uhWeH7gYYVNkV92s7bVC+sScLEyhyimqPoAvecJ6icvIIabkpR6F1Nm/rBndCN7rTuaH24keez7OtF7gz2e5dv9KXQRIO93DmJ4sdyvpR3tzmoAOBngg0Qn8H3I4odO/w1oHo4rmh8RjkHayBZlhmJoew1Ao27HDyDMWeXe5u0gg4KscwmVlO/FKUJEOhawTH2Jd2fxQOwJ7w8BoOtBzXwIVEv2AP/zm0qbisYvDHX4qF5jg+KY+mN2Hqr0fL4QDWIFLYSLZDwZwxufsneUA7QIp49RnvWKsz1PAathM28e0zf4KhrUXh+TRfBFRneo8CJM9cCV0lRQuK7oVGXiI4utka4A3cpkOWDwYQHzVBnWtiughnYfk+N2Np1EnWprkf7Wx65vU/zw1fxfcFlo73Jt8W5sUUmTpAiqvQlYKCY7TJGyD2j0gV73E9CYBoU= X-MS-Office365-Filtering-Correlation-Id: 90d270a5-f06b-4a4d-067a-08d47ae84e5e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BN1PR04MB390; X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB390; 3:6M/LWjUyj1WrE5Ja8rMNlcjxf5LXmd3r1TmQlHFjFHcDzhE6CI1YN+UMrEv7uV74x0KDmYSZPpiteOfAzT9BXqZJoEE7aPhQFQ/s1zUW68giYM4cO/z5ywoFHKwgq2Jr0Iy3rQIhdhKQVUC6IqEAfBMHQUw+eO0CqJpenguHkZRG/OvMADfweYJyrZMeAnokC4To5xxxvYXN3QwVLxpq560BTlqfanWIy3mMAohPZMrFZy4MhF2r+OIvlrPK8XtofVgO+6Sm6JPNGhy6JhDbR7Z3hlmQ9O8t4xy0NeU80Ynu+zWMvzBxmTgtlSvGtfKT2wVaq/AUn0TfhTeSCeaFePfaxIXtvjPKdaBU0SrBax3J4GDJu/DaEB3K+NKaYee5LuI3zzJrLZLASv1+/zfBwKExqWqkg1O+MHlOVYLAq42KvT9BI/t/tg0g0nOlNkbLeRt4KRFstdjbq6DYCAo9e9Kcpc8wix1Lz5P9qAXrk2XZRLa6mHoNKpcHV8MJQvs4 X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB390; 25:KGdI+OjplVQ1zev83EEUZ9BPz3KFi6WdMFm9mTP1PBVMj8iV+v1tCCQLVGiu7v+35AExAtUM49umxygW1hlj+cpXi8gfvB4BM5pPAcKtMXWMKghrSHAPV7TnXxZ2Gb5NN20cQZYQ2laqglPE3zOXLvvzAnA1JwCqPI7YkaGeJYowfUOysMjyfLDmR4ya7pzAQMszp6WVETkYuNh03nngQOJovRB9x62Nr/iBFfkHbMOZtHazqV9Uv3O7HTF65C/MGUGrHUR3zEDSk86nlsKJDBO0D943AvGdMZDsz1JKTbRZXGYKIHHIxlMxMdEod06esMEwnUW+7u4aL7jAVMgG9CtCTbmg7L3+qe4dTS5ZYXYV44RTVaenrGi4TtLfWavv0EwOiyelWUDI3sFcYi9oQ5o14/gTXockcilEC/H4L9QhnW3ShaAJJmn3vnySWeAP0jBy+JoWwtdiH8Z+rYwQBQ==; 31:w1kMST6lFsvbI1nBAFtvQhDSXyQh2W7tZkkJIzp5ciGB+JQteePl/qtEJoDMsilIj8ar5R+fgwOgNsUVSkNrI1Fu/GNwLfcNk9/nf8CJqWpIHOFdfegOG50MnzikWG2kH3MAEEuTVN9A/YGIsZBY8Y0xqxbru4sqFThy5L7y96aooCBU9ObmOLFW/53uw8M1EXOoySEwUgr2iQFjmihw6kKDwmSgsa+GAnhSUeaUHqqXk1J31v6IAsYd0NMvvV5LY5CuTdlyAZ9LX4oXod8T6Q== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB390; 20:23aNuJ4uG9yK3zSwc0kauDxuLaP3lBr2mPtoOpPM08HDHXY7XnG+/mKMHAFQaWXZg13RWQ9w9Ba0uSw88Rju2ly+Od75v2oS28msugU+b8lTpilZEQorCaCHs6wfkXhVpRUOgB+FelsU2D71MfOST3azO/hOfQSFY5EW7UNB/D/QBNbWs2aIrKeiDVlLoGaADO88Op73MbCs2ZK/Yl84M3VP3JdDsyawq6osFYRky9+9UsOzWozfRJm7Gd6r3XgdcffKEr2/Gdv11i8PHyM5GDFxIKhHNGKBUYAixKflTOSrZf1qx/mw1iEJNizkH5w8V7MkwJOv7KQIZWOy7sdiPWEEsqix2xGHCYavhUzma/hLOUr6CjWIm6Ca0gAD3QM+KgXmBs/QYFHZ4koYeMWSiVnHU/3XPJzjrlLwiYpJwdVHOgArfATiqGUDgCxCbqHNjkKuuoHE9BtT0BFya+FmVXuYYpa9tMrP/LzCIwiDTQ1T4dRHjLyN6TGhFnSs0D5J X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(146099531331640)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(6072148); SRVR:BN1PR04MB390; BCL:0; PCL:0; RULEID:; SRVR:BN1PR04MB390; X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB390; 4:YdrCKxEGrqfqNA2Tb82nrVAU6JvubxQskAhg7j1CtP7zloJNy/HO/pNmxdaTDEeTc2VLtYCROElJKuciETIZ5rA/DvUsLS/3ewH/uTEVNzuUiGfqQcKXmAkPOHdBQUisdqpfx7kK6uVX/g5F9HUG+1z7xrAz/4lc69/WQBDkYFv0rMp/I49ttO84TxIROdYpu/fjye/yr58X0LnbBf1KNsxAqJQY+t5BC0r6Trk7DWTNYMDOOA/Hz8qRQ9gj8Gmj7oR8GRAY3mhml/9CjAuedLI9g2wNuw65nMi3dwxSSmgZlPilvU2IwZWmLD4+wBmexUaFLGhE9FTnHbyrTtMdysIQvVgRETiI5ugqREk/Q7b+Kr+ivV916MuAm4+dWDchzKxpaBWmtYiLVBeZsz02TOloFNlzC+ByOcz+aDQfXC7DKQNATONl687SgYvGJdlExmW7DOPh3H5Zv6ZULD/xl4GuNaDS5XsGNTPoOMapJl3OrATdKMIf1oSUycuYII0198C5n76ECeATdntoJEk729AIAZO0PPEZ2UvkomRZV6RQU3isKrI6a7sXgDo5d2zbZYW+m/1gKvd2QnZK8ly/F5zuOYMYdzro76jTUlF2mc5YvAjtoVlvT5wPfP9uzOhBQZFjAeRQX4/uiJvs1J1guMiqR3oJBs1AHkbEBYNjW7e/qrcISRhRRSc3V1W6CPL/BuFOf77vwoMyrcsvw+wzW9kuq5I4LexLDsnHfWBBY4z3ziPq1W1yg/PwSuoOanqVBkT3py63F27jsatEzBVZoQQ3HbaR99KeXZpZ2dJZQcatpN/ZcKVxlhef8vORslZeH8qG8TqP8w1PsFFDvEY8pCSHka7c3oXvYClr0pVFv8M= X-Forefront-PRVS: 0266491E90 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;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= =?us-ascii?Q?rRLS4bnYD2l7ZGqCRfIH2mtVx3LULFegDCt9AdlyhP7SqpWHnUuTg14CQwe5?= =?us-ascii?Q?sQs8UzNDDilKNW5VpEQVsFTX8zpkfF3G/cKR5PT2QkCXk3Syl4aqW4En4bgg?= =?us-ascii?Q?FahUjjCkfQzPHfcPsyMxR2?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB390; 6:oKSohoCfMGMT6foTylmXK5+ldxxfUanpC+A19EBgXnqMcg+I5le8mKqpY4TWxMgfDpYlm3rQ4hsOsFgDaYX+PLQfzRGFh0PvR6u9/DYQR4vOZ0P+MTsBq9B25h/z+U+wZ2u9tuGvIK4QigVVV6EzfISPU/ildXigIihAYFYCUcJ32DgVucIuu32Z2u/k01VCCU1zEycfBiYlDlvzY6tlB/YQhVwkfGTcr0gJitX/Q8DJVXMqA9IRQpeM2RH63EwCc8yXeliYA7wQDyHqNYRQ2x+JsS6u+ktCER5O+RgqH3bGP916ZWqMRvzub/+B4EiVbHdz1RVtd3xy0p69cqH9hD2XpGal48+J01lwtgUec+hJMMP8LzJYbQuqRMQh/uREDJMDr138LdVNM6L4gdnAhZczSbp9KPGPWIZqPRJfR5Y=; 5:elGVc9vj7RyffAQtniLQ5jDfqHkHJuPSfpdt4SO5T+Hh0i0yv8VkvoZ5Xi+Qktq8bPeQRk8IsnpPB2eN+VA6giNrm2ambQuNw3iPBqPtZ/EX3cfxZ5IHR8sVSkDDbEEMDh+VZ9LuVS/Wf6/mXEfHZw==; 24:0s1bit/o1XEDhyEcUCUbQJ9ryew391ogJCeVM/wQa5YO7OIEtUT27jxWhoS/I5jota4X2BXbly0yihTvhbdOyyC+sDGEsnqtu+r5jCmC9uk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB390; 7:beTyY8g+1RDxDAe7+IrH8SfCrRhsPFaBuqSl/IIkVnX9LNGeNrPEA1a4sOz6tsFygBHf7Lux1qKtmSz3INcDNE4OA83Fn/LjooPnl6JptiG4sKq/TusxcLJDJHEfQd5vIhCXcxKY0kFDMvQSLtUSsX+UMvLOnjTM8+znw4dak/MzfAC/tDOi5MWDSp9YUWYGIjw0YSTwMiMbtrVqINYDfM9ETEovvm/vLKZobisPlOcdfNcsdXRVHptMc9JuZL7FIeleS+B/s31dH6Ym91wD92gDo07awBXkiPjDbedgf0We+zb8jsJ1thH1taU0jAVclG5Cm5FrPqX/t/cOJThObA==; 20:wYe8RYJD2dVJ1nQvrl2QRLldEBpbtzRRO+3TTk4w89kG8ELn+q1Pp4thoRDOO/Mi0urnfmVP37Yk9Xt04sXAr2i/oIh+MqAHtCY4hm4uZntOyDQ3pjxSYm9YC4Jepdmz/0Qs5IvA1KX4pvLaEQ4/9AcmFWrDCHHpK1KIukVw5F4= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2017 23:22:32.6087 (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: BN1PR04MB390 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 a later patch will add a call to this function from the SCSI core, export this function. Move the BLK_MQ_S_SCHED_RESTART bit test from blk_mq_sched_restart_hctx() into the callers of this function. This leads to some code duplication but that will be addressed in another patch in this series. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Martin K. Petersen Cc: James Bottomley Reviewed-by: Christoph Hellwig --- block/blk-mq-sched.c | 17 +++++++++-------- include/linux/blk-mq.h | 1 + 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/block/blk-mq-sched.c b/block/blk-mq-sched.c index 09af8ff18719..414ed4b3d266 100644 --- a/block/blk-mq-sched.c +++ b/block/blk-mq-sched.c @@ -317,14 +317,13 @@ static bool blk_mq_sched_bypass_insert(struct blk_mq_hw_ctx *hctx, return true; } -static void blk_mq_sched_restart_hctx(struct blk_mq_hw_ctx *hctx) +void blk_mq_sched_restart_hctx(struct blk_mq_hw_ctx *hctx) { - if (test_bit(BLK_MQ_S_SCHED_RESTART, &hctx->state)) { - clear_bit(BLK_MQ_S_SCHED_RESTART, &hctx->state); - if (blk_mq_hctx_has_pending(hctx)) - blk_mq_run_hw_queue(hctx, true); - } + clear_bit(BLK_MQ_S_SCHED_RESTART, &hctx->state); + if (blk_mq_hctx_has_pending(hctx)) + blk_mq_run_hw_queue(hctx, true); } +EXPORT_SYMBOL(blk_mq_sched_restart_hctx); void blk_mq_sched_restart_queues(struct blk_mq_hw_ctx *hctx) { @@ -334,9 +333,11 @@ void blk_mq_sched_restart_queues(struct blk_mq_hw_ctx *hctx) if (test_bit(QUEUE_FLAG_RESTART, &q->queue_flags)) { if (test_and_clear_bit(QUEUE_FLAG_RESTART, &q->queue_flags)) { queue_for_each_hw_ctx(q, hctx, i) - blk_mq_sched_restart_hctx(hctx); + if (test_bit(BLK_MQ_S_SCHED_RESTART, + &hctx->state)) + blk_mq_sched_restart_hctx(hctx); } - } else { + } else if (test_bit(BLK_MQ_S_SCHED_RESTART, &hctx->state)) { blk_mq_sched_restart_hctx(hctx); } } diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index ea2e9dcd3aef..f62f3ce2dc65 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -237,6 +237,7 @@ void blk_mq_stop_hw_queues(struct request_queue *q); void blk_mq_start_hw_queues(struct request_queue *q); void blk_mq_start_stopped_hw_queue(struct blk_mq_hw_ctx *hctx, bool async); void blk_mq_start_stopped_hw_queues(struct request_queue *q, bool async); +void blk_mq_sched_restart_hctx(struct blk_mq_hw_ctx *hctx); void blk_mq_run_hw_queues(struct request_queue *q, bool async); void blk_mq_delay_queue(struct blk_mq_hw_ctx *hctx, unsigned long msecs); void blk_mq_tagset_busy_iter(struct blk_mq_tag_set *tagset,