Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40AE6C43219 for ; Tue, 21 Dec 2021 02:00:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234019AbhLUCAB (ORCPT ); Mon, 20 Dec 2021 21:00:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234075AbhLUB7W (ORCPT ); Mon, 20 Dec 2021 20:59:22 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4743C06139C; Mon, 20 Dec 2021 17:59:15 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 704A9B8110F; Tue, 21 Dec 2021 01:59:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BF3AC36AE8; Tue, 21 Dec 2021 01:59:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1640051953; bh=6UIh52Tcej7Ot3P7T4ivehxOUWTSUwK+Qf3CRz0eW20=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dUQ82qiuRwuUGZWskSy9zr+JrmEzjOVDGC0qOx+wYEAfmz6LB/2m95htc6kgNoPn+ m3WA17B7jxisMX411jbgYq/EyHHJb5dtseBNGGNX/SB+qpY4H1NTvRDdaiDkjWqgLA 4LleoGKY3dZcQT5E2jDwsuRaE4ICYgrpUx4vyjkfK1N6hi1jX8NRK7xc1cox7LcmJk SxEEQC/xU4vHUQlm9d5c8xErXosSiLIPINuZn5PU1ig93cB38n4zw1tXiGkMvXrT6U zyz2Y5vlc12uZxhay87u5pwazbrcvB+dcQMmeHX0H10Gd3HS1N2EzSEVft3LJ+MjKy dICWP9dYtvQ2g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jens Axboe , Alex Xu , kernel test robot , Sasha Levin , linux-block@vger.kernel.org Subject: [PATCH AUTOSEL 5.15 29/29] Revert "block: reduce kblockd_mod_delayed_work_on() CPU consumption" Date: Mon, 20 Dec 2021 20:57:50 -0500 Message-Id: <20211221015751.116328-29-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20211221015751.116328-1-sashal@kernel.org> References: <20211221015751.116328-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jens Axboe [ Upstream commit 87959fa16cfbcf76245c11559db1940069621274 ] This reverts commit cb2ac2912a9ca7d3d26291c511939a41361d2d83. Alex and the kernel test robot report that this causes a significant performance regression with BFQ. I can reproduce that result, so let's revert this one as we're close to -rc6 and we there's no point in trying to rush a fix. Link: https://lore.kernel.org/linux-block/1639853092.524jxfaem2.none@localhost/ Link: https://lore.kernel.org/lkml/20211219141852.GH14057@xsang-OptiPlex-9020/ Reported-by: Alex Xu (Hello71) Reported-by: kernel test robot Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- block/blk-core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index a728434fcff87..c2d912d0c976c 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1625,8 +1625,6 @@ EXPORT_SYMBOL(kblockd_schedule_work); int kblockd_mod_delayed_work_on(int cpu, struct delayed_work *dwork, unsigned long delay) { - if (!delay) - return queue_work_on(cpu, kblockd_workqueue, &dwork->work); return mod_delayed_work_on(cpu, kblockd_workqueue, dwork, delay); } EXPORT_SYMBOL(kblockd_mod_delayed_work_on); -- 2.34.1