From patchwork Wed Aug 9 18:28:06 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: 9891573 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 CA0B460384 for ; Wed, 9 Aug 2017 18:29:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B994A28A48 for ; Wed, 9 Aug 2017 18:29:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB6CC28A56; Wed, 9 Aug 2017 18:29:27 +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 22EB528A48 for ; Wed, 9 Aug 2017 18:29:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752831AbdHIS3Z (ORCPT ); Wed, 9 Aug 2017 14:29:25 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:58897 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752517AbdHIS3A (ORCPT ); Wed, 9 Aug 2017 14:29:00 -0400 X-IronPort-AV: E=Sophos;i="5.41,348,1498492800"; d="scan'208";a="143082758" Received: from mail-co1nam03lp0015.outbound.protection.outlook.com (HELO NAM03-CO1-obe.outbound.protection.outlook.com) ([216.32.181.15]) by ob1.hgst.iphmx.com with ESMTP; 10 Aug 2017 02:28:13 +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=jT0Pw5Bb6Ct9rUYrsaRiTMrHSE76txYZ81GM78I2zDo=; b=jbcmHq5UXs4OYhQTDoggpGZiV87r7tbSfSB3ycCOy5J93XIiZoBWGs5QbZw94b75PgPon4PExlZOl6CA+wYgCkT1mAi24fdz6EUwVbDISQwX/9+KyKxRWByMgH9mw+oV+ctvDmRLrTNwt56ERTyYU0GiUpvhNfufZeHF9RgVMIs= Received: from BLUPR0401CA0018.namprd04.prod.outlook.com (10.162.114.156) by SN1PR0401MB1776.namprd04.prod.outlook.com (10.162.131.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1320.16; Wed, 9 Aug 2017 18:28:11 +0000 Received: from SN1NAM04FT017.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::201) by BLUPR0401CA0018.outlook.office365.com (2a01:111:e400:525a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1320.16 via Frontend Transport; Wed, 9 Aug 2017 18:28:11 +0000 Authentication-Results: spf=fail (sender IP is 63.163.107.225) smtp.mailfrom=wdc.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=wdc.com; Received-SPF: Fail (protection.outlook.com: domain of wdc.com does not designate 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by SN1NAM04FT017.mail.protection.outlook.com (10.152.88.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1304.16 via Frontend Transport; Wed, 9 Aug 2017 18:28:11 +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 9C.56.03809.A345B895; Wed, 9 Aug 2017 11:28:10 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Wed, 9 Aug 2017 11:28:06 -0700 X-AuditID: 0ac94371-10e5898000000ee1-47-598b543a2b3c Received: from thinkpad-bart.int.fusionio.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 24.2C.11415.6345B895; Wed, 9 Aug 2017 11:28:06 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , , Bart Van Assche , Mike Snitzer , Laurence Oberman , Subject: [PATCH] block: Make blk_mq_delay_kick_requeue_list() rerun the queue at a quiet time Date: Wed, 9 Aug 2017 11:28:06 -0700 Message-ID: <20170809182806.32741-1-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.13.3 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsXCddJ5ka5VSHekwddWcYvVd/vZLPa+m81q sXL1USaLvbe0Lc5/eMVk0bbxK6PFgo2PGB3YPS6fLfXYfbOBzeP9vqtsHp83yQWwRHHZpKTm ZJalFunbJXBlNHy/w1pwmbOie+8TtgbGPo4uRk4OCQETiZ0POhm7GLk4hASWMklc/NvACuFs Z5Roev2NpYuRA6zqRUMCRHwto8TmI1fZQLrZBPQkTs3bxwRiiwgoSPT8XgkWZxZ4yyjx708o iC0sECtxcPE5FhCbRUBFYuLxz+wgNq+AtcSR5lYmiCvkJSb2TgO7QkKgjVWi5dUaqCJBiZMz n7BADJWQOPjiBTOILSSgLHF+7RO2CYwCs5CUzUJStoCRaRWjWG5mTnFuemqBoYlecWJeSmZx tl5yfu4mRkgQF+5gfH3b+xCjAAejEg9vgmh3pBBrYllxZe4hRgkOZiURXoNgoBBvSmJlVWpR fnxRaU5q8SFGaQ4WJXHeLNmpEUIC6YklqdmpqQWpRTBZJg5OqQbGMH9+wchj/y9cuuXe+qj4 61ffOTeLjT/YvH/hd4tRN8U8uvZBzIN98RVnf/1Zke4t7XZ4Vmn2ltRr8/pyz816IuiQvIeH L+yIgO4xdXEO/w0OploJyUXKmceunjXesmDXsnCDPp77afsYJ1ztvPtcKWdK1QVJG+e2zc9X cK9PfxAr3dfVMd1BiaU4I9FQi7moOBEAXY/78F4CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNJMWRmVeSWpSXmKPExsXCtZEjRdcspDvSYPoyZYvVd/vZLC79+cJo sffdbFaLlauPMlnsvaVtcf7DKyaLto1fGS0WbHzE6MDhcflsqcfumw1sHu/3XWXz+LxJzqP9 QDdTAGsUl01Kak5mWWqRvl0CV0bD9zusBZc5K7r3PmFrYOzj6GLk4JAQMJF40ZDQxcjFISSw mlHiaP9r5i5GTg42AT2JU/P2MYHYIgIKEj2/V7KBFDELvGWU6H89gxEkISwQK3Fw8TkWEJtF QFXi25Tb7CA2r4C1xJSeX2CDJATkJSb2TmOcwMi5gJFhFaNYbmZOcW56ZoGhoV5xYl5KZnG2 XnJ+7iZGsPc5I3cwPp1ofoiRiYNTqoHx7vI2Y9WOadu1s58qMZ07ZhHtyB8eEi8XLc+3bXUM z4YzH9uX6IfXXJP86XCU7bya+D9OTub3DknKdZsddjc4f3FqnGEf+F32sqfIiQK12Ss9g0oO n6sp3TVb5/uGP2/S9A5c4Pp2Z2/VsufhrxMPtXNevfY//8mmZF6GSOE5GRGnVjM+qLdUYinO SDTUYi4qTgQAHjOaN64BAAA= MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:CAL; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39850400002)(39450400003)(39840400002)(39860400002)(39410400002)(39400400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(105606002)(97736004)(77096006)(478600001)(106466001)(575784001)(86362001)(72206003)(8676002)(189998001)(356003)(50986999)(47776003)(81166006)(85426001)(81156014)(53936002)(38730400002)(5003940100001)(50466002)(36756003)(50226002)(33646002)(5660300001)(305945005)(54906002)(110136004)(1076002)(4326008)(68736007)(2906002)(69596002)(626005)(8936002)(48376002)(26826003)(6916009); DIR:OUT; SFP:1102; SCL:1; SRVR:SN1PR0401MB1776; H:milsmgep14.sandisk.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT017; 1:e3rkDHd5/ZC6nAl8z/5sOgXL0cBNbKqU/dNmBShBdSPSaZSnZwA/hKyyg1VQ3zvTYixEcX+rWisLvdgO6MpKP3XzTTh0sfCDv4/d7eQasIof/hIOcbFVA2zuDzMP81bMYWSZ2GIsvItJKyxRCFyabpCNR77kPZ3pX5mKPt+pYmBXUiNwd6bjHAT5X7Vf2TL7nfxmbdyMcki64EoLgds2NrykshsKjXxSNAORGesOkwF4zdQzzZubsKEMOJGZkobFMyakn3pDO2Uik4MxVFO9agtpW1qjNoglViZJVgZxFaCzmwf5nHMhn6e8WGldvm3VuUc9uh1T+ofT7S1ZAYerOH9scrNyHHzkHha/8JGwdrADC6aXH5jQJ+8b95qHLdMqOHCn066fuV6ekjJKAJT2L8bKCYEBsbaQ1my30AsxxXrh+gWep8IA/a6wkniJHR+/pue2os3m6pt1Ydg+1pgux8dOAAJSDNfOHF3j2cPHls6fPfHx13DzsjWmWPIV6qB8oBskGBJujgMFW5+mdHpQUw13rVf+Awniauhc6VrY6lZzWsKqmgR3XlhB3DFd7VjlXjwUwjqYNjr0GqYqejnH5DieAiEvsHaEbRO8eZM8mkVh721aUUXBRZSXEwCrMQMjo0Z79CALHB3iXJSvdhUb8vlhbp/mg3/KXn8OAvpoDGxO0lOQtuLBajDCdrj262BD1UcDs0xl2yzXrw09+7n9GGqBQsjqEWBJbxFsu32PGFI81OwDQok0tI5XOLoA6uODrTQ/KKbZIDwvOHyfYh0f2EY+ZKrAFFFeIymKOBh9BSvl2O9VKtY6kujSuK+GOia5I3VVFLsezm//SqOynEJhXw== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 95c8c8ef-9c18-4712-66b2-08d4df54644f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:SN1PR0401MB1776; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0401MB1776; 3:aTJTmi9TcNuOPoihg5AEXiTRre2Ehs8Bds9N23Ez6G5elth/1IwRf7Zob31caPbMvbagd/oGZYmlAg+Hs478droP/XCJ4LVo+7K+phCCu1QKWmGsh28d9j8FNLBhgxI4f7vTSo/WxP1V5A1IoKuqzOoIcFB9cR0ImGD+4Bo0dsr6iJJ3CHLDSgJUMIeW4gKupx/JU1kaSm6Q/5kaBudXEOAzrpPvvTM25OPAtDzMFApz5rEQhTYMxyKGTyPFc0SOd71Avik1aubJGXKJ8lBC/Q002GkuGCmCKB8OUYQJ6TDwdyf2lPZEhlP600NhXkEO+v8x4rSptxzZVoyj6waQUnlvcFOtjt5k7nPe4buM5dc=; 25:VnX7Lo6E3wLeEiaC8rDHbz9DqQunyvMV+Oa+RagioUC6I31OxBFs2jgf9zf60P87w1KqM+mOgcHN473aXc309MUJs2HcCZJkyO3SygXL4T4Xvbfu5YztiDy7UtXDjhaNwvCxpou6bgBszTQxykqEAnXgIxcAefPMATBX8DBu0HKKlGKtigLKitNbkgYreL/VHc3hMy62XX0LpJtBNKEsYzPIjllkqE9XVC+49SWZG3epnR+aEhleVM4xXcHWnimMUijJr9RF2e+S0/DOMhwbPXH8FxpRpPxMG2PJJ1T+ijPSEwktUtPXB3l2fiNUPQzpSux1tC/SBj+ucErXrRnFPA== X-MS-TrafficTypeDiagnostic: SN1PR0401MB1776: X-Microsoft-Exchange-Diagnostics: 1; SN1PR0401MB1776; 31:5UYgmnPCs8lMLRnrc6Rh0tg0vxFxRxEagTrJBQxsi3wqCJZiL/2ko0P2AHPc0cS6cQ3Q18TK80DjrqsZEgKi2Mgw51W1oLJcXBKuvqaDOPgawrIrInN+lG722IbeTS8tJOKWjW1ORSuQOAOx+4ZvNsZNh4NnBT5GPJJVtXTXY45CS8aWYKx2+mXvR2tVlnjk8YGeYYmXGCUr14vnM4wnXr26UAmFLgwymmOPSgdbeCQ=; 20:Dg0KNILEYUPWsPlsZ1hqyD+P8C6yq2fSAl9ATqlISmkoDVks++EWn+GDdVfxVSpmO0MvNdtphoQnOZl9pPJ2/iYjAHVUglOTVMU7htt08faNClM+yY/2xzlSq+CRLWaR1nvK5yBq/4V7kmyWSCHUWjQPi5rPlzR+Miz2cubwYvT34TisnkIziyHllYpS1KnLjI653s/0Q4NDQAZu7/95U8qjlNNCkMD/XyT2mD8x/ACWMtL50ZeS3RL2tgwRlYizEM+m7QwANuh3P7yGdqD0ZaQQm2N0LPhljsLhQFC4ElLPV8eXynVPSwoG5xnpBnhR9yyZvfYm9U4slEf1pGrtZnC1wQ0Da4Fk+lxBr/wtI4RtqmzSuDvPk+2rfBXdlfYjCrgEmFAKdCSu4ju8dT/01OkN9rU3FcrI6rpcj0iLbj4eBfjs0SPFojzeiAi4SrzBWRknP75Npjuh1XJ/jOePo9VouiVdkuu58/52LGX5sLSqeNUf7dDiHKfePMtH3alQ WDCIPOUTBOUND: EOP-TRUE X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(13013025)(13021025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93003095)(6055026)(6041248)(20161123558100)(20161123555025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN1PR0401MB1776; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN1PR0401MB1776; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0401MB1776; 4:eqm+kmPXt/S/+rBtHD/uvl+vTeDKVB8v4bYbyy2gVnQhoc2So3Tq/8xFkKphDm4Ebn8TTQuv25JHBkuIQkcXkrGFEFM+lCAiaCil+0q1M6vBm6RxwSf741VtnuupfUUEoFCcUN1uXqsWRTwdCMt9jsE7No7v85JyWtisf8M8+k/ebwaqzVB0HKxjjqGr4jttpdQ1FR1/JvXpO00Iqn7t2vLiK8mgLfg7KDcdLZe+tJH12ER468LlqZUJbYso45YFiB3/GnV+16ErypTIx9UDo55JpkkIG2CHuAN5UP6HFkw= X-Forefront-PRVS: 0394259C80 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0401MB1776; 23:2+OzJ0k7mfOWuYxbLHpUdfkUnPTRH1kv6IQJw0X?= =?us-ascii?Q?VF2dW4MNDGowyuosg5Meo1HHQB/m6VvVnlhm5sns9dEt7Uk26mFPaqpYX0ku?= =?us-ascii?Q?bmM4UXR6hcl3HLO/Qo6hxMKP5xYgHbwsspMFIbYpPhZDEWAAlDPxR+3J0NpZ?= =?us-ascii?Q?c7LxVpSsCYZyB1/zRAaMiDi7bDpAkQMUl/hKocIg4eletUGbJTMnTjijv/XT?= =?us-ascii?Q?06JDrVll73Zh5NvOAMFCA2WqxlCTZpqcJ8rQbeA+SH5t/Utjg/GlA4hcodXw?= =?us-ascii?Q?15yqJwWwG77++XAxWi3HjYnR8yiI/9wOdWpl2XtJQeLCmCye4RYa6WEXSQmt?= =?us-ascii?Q?5GtshLGbFqhIQwkw+DREaKYIWJHEzTVGfwYNegH/cmeSEUs94XCVvG9gnofv?= =?us-ascii?Q?ZCoohULrASuTGme15ycFxmC8OwBMM3BTGoP/dYaAjf3utX3JMqCBCyrEC8lb?= =?us-ascii?Q?FW8IMKYdhqSnEo1BnOTv/c36bgzqTB302PYSSZ+u6bh/NKt4qtP5SaIAA6PO?= =?us-ascii?Q?qvol4YbbZ7hJLhaAMWpVyqAHOV9crw/RHBNoXktV3KKaIx7SNO3R39m7YW5I?= =?us-ascii?Q?qtoEQ+Ggyp/J/o1bU9H6SYtktta2/rrh9naxg0DO4li26G5qVk5fhLvzarx0?= =?us-ascii?Q?zaNu28TxQ9f68xONq3JDI3y4mjjXDM5/Z7T0j5UImiOYFT2SUbP0M8TaSeV/?= =?us-ascii?Q?VcUcxAa/RB7IJ+d2xZr1oOoSbgZGVOMEoHs5OS3uDO6oFKGOsG5SP857ZV+E?= =?us-ascii?Q?PUgobptte4ZWz2n1TwqkElHlnQBeZAjccRKffMuZoBzf1fRwgS1+tHBXKlWc?= =?us-ascii?Q?1cxBfL76JTWDizF7ufpfiD6+FA2bx3uKZYIT1ihLTHQ3BLSQ32wzrQXAM9Ga?= =?us-ascii?Q?mXCx+LycAIT4SB30snXlck3/G+bIK5AtRf5AoN/YmgsJv3rjMaqIQfvFNqpq?= =?us-ascii?Q?lNADOvRCh1vubkp+D0NcnslXL2f0s3ZXMH7ZujPTskdmywDfBO0lH+g66eRp?= =?us-ascii?Q?cyPvPwzBIQfSGCQuIFmQXB0yWwd6/cuBBO8l88lCNwh6f5Q19sCDvXN5p9g1?= =?us-ascii?Q?ry8qWrDSxRt/k4uKvoibwXYE8Gd7nuqOvgIDR3L0kAx5Y2ZAvNeMzapZ1bUs?= =?us-ascii?Q?U24R0X/4sLNP/pWtW25jSN7TGFiwvULLeF8++Zqm6Hr+G6KPiy1WFVfqnTqQ?= =?us-ascii?Q?tSv5d5Fm3yH0bAHD+9+1d5CnyuyFVozdMGGZnDfuargHPZ5yFn5msg42w8g?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN1PR0401MB1776; 6:EEWucVgDguzEvmrBpcfGOjCWs/+pD8mkklMes+xEb68RgXO/VsHJRf0IIEiCXBGxr0RZ8a0fiheqmeoY/0y6FlVjNbFn8qeA4NpENV/rleIGI7ps5nxwibUGRi1H4c7MY4QJvYKRIWudNg+j5do8IMxo7/xfVLYUurqIFbOdIoVWsYe47A6xkKKo+3tsoA+/oiuOsrWh65ujkXbDVImsvqh3uf50vCHzH3/bwIO+2rwdGFXsxTjLbWsvK1T2wog5nsIOc1QUuBxjs4X/snNuxf/tU2G7rAi+Tp+adwJGuf0b0IelGvLY5TArc9gZgM85eOYZ1ybNeXy6snd8AsSyxw==; 5:GYZBTVLzjYxSejzma9PAim8ByIuVG3VeEePRpnTJ0sDF3IVE9+NnV7biCWDXA9F2NbLN/f+CDgio/HliUhgBrs+5O8CBstTyD5kiy4QAnvPz9XpmE19VO5jl3A3oqpEzm7Cdt3a53TXtE0b03UIV3g==; 24:CkDZG/J7gZbLfwLpoHd78EPhvhCOoSGWNEIutnK/k0+t9XAFu8iCPRGR9dsYI7gyAH7Ocl50EUEx1HsKm/qLVKiuTlYxh5TgTomkUkIwpBI=; 7:TqOXhzmMoQYCUtRKTgLXAjurEp+U8TLeLsTGPqcMxSEzR8aLfE/kB/FD3lE8wY9zq08oWpXjDpREoLB43mumSLU83OtQD/OykDBCB9STrU5jA9pIcTGGguEk2KJEtDu3yW1ruEr3w2Kuo+NQIPGnjn9hqR6WTCfcK9wVG/Gxhs68F+abw3KJ7RF6DmuHqt7qczgSmyVrZSOG7tJJEKMDR66Ip2haCJz2vqCgC1DGy2g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR0401MB1776; 20:WQHJM1KCMJrlDqNFXI0+kSyET61neDBpVLzonaBCFbCh+0ps15mgdXPe9oG90DnZ3Khj56ijJLCCcts0Lrpvd4uEXPctIq74zHPxCCLFUH7lkLp/dUwjyNKA/oBiyhw7NzTD4Ay25SqnXx6naZEES9c6MHyuySsamg25iNxS4VQ= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2017 18:28:11.0816 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0401MB1776 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 The blk_mq_delay_kick_requeue_list() function is used by the device mapper and only by the device mapper to rerun the queue and requeue list after a delay. This function is called once per request that gets requeued. Modify this function such that the queue is run once per path change event instead of once per request that is requeued. Fixes: commit 2849450ad39d ("blk-mq: introduce blk_mq_delay_kick_requeue_list()") Signed-off-by: Bart Van Assche Cc: Mike Snitzer Cc: Laurence Oberman Cc: --- block/blk-mq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 041f7b7fa0d6..8bfea36e92f9 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -679,8 +679,8 @@ EXPORT_SYMBOL(blk_mq_kick_requeue_list); void blk_mq_delay_kick_requeue_list(struct request_queue *q, unsigned long msecs) { - kblockd_schedule_delayed_work(&q->requeue_work, - msecs_to_jiffies(msecs)); + kblockd_mod_delayed_work_on(WORK_CPU_UNBOUND, &q->requeue_work, + msecs_to_jiffies(msecs)); } EXPORT_SYMBOL(blk_mq_delay_kick_requeue_list);