From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2236D3E317B for ; Fri, 8 May 2026 13:45:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247955; cv=none; b=uezj/HVzivSRyq4z42ZOp3Q1Yap2pyjTmIe976i0fEGqCpS9XlWxjE5K5+s1Ydsec8/ne25RmWNUOWPrsX50TFBLRsGZ4464X8xPrK9EGUTUOn8yi70tjzk0buvTDVVlpeeGmoDoQMNHaq4e23aR5hfLImGPxg0WUs4SMgpriSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247955; c=relaxed/simple; bh=arZ/K+WIvvNgPtTQXm9UPjZacGvlqjHKB6p19gaeznI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=htHadkxZK2hnOH1BGR05UstPFtOcU48nuLUZ1AeSVhHN858kijQ5xvK/RnAgRBYiYpERavt/Hh1Fz3dwU/dtUjt6sntWZLqazSsf5zfIkoR3B+H45AGRxmOLEwF7ehlrUIBDsjkKxlU19HRLG2Mjn8P/c+cdaHVrGmD3IwyBF0k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=MsEkvdNu; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="MsEkvdNu" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-48d102471a4so20394895e9.2 for ; Fri, 08 May 2026 06:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778247952; x=1778852752; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1Ld/wu3++4nyB0Vr0RqFc6Q8N9g22VKb2mDch5kfrLk=; b=MsEkvdNudDZf+07kuk+QiqhDpcfBCfTenSwy67+TC5RYkuWh1VldClf50XVqywaXHj gJvxUqP6bDNqoNv3vbhKryh604JTmRqXEngwftyVLBVaNHUPMFv9g+Cxxjd+9WuGIn47 hqIK83871lzbn6jfJluJGpT5arFBFpTD4QfbXOPxAM7tnWutPsthfc1/hJbUmhZX77ZE fZ8ie2U+nyIjvGGyf2q8kDN1FGJV4+AGP0+W2plz1g07nNcDNwcBTJDXMqiKTDbXZ40U d8MfXIQ03nZ2PtRtrgYBdTjH9KJamuBhimRFtRBue9/ljHyNWJYqy8VBceop6OoxQYMG 8xbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778247952; x=1778852752; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=1Ld/wu3++4nyB0Vr0RqFc6Q8N9g22VKb2mDch5kfrLk=; b=oFM+7EyBIaDw0oQSV4FYBBdoM5lkQRc79cXll0kOu9VGB6yFug3ewbupHePZ55w0Z2 R4jzy0eUmgBAKYuiYyG9xnQTxwNf+Aj29N3tqANTJPxC+dz1Z8TJA5O35HKovEA3CtLO imbffv8qGU5/iuqNBLr418qq/Ir+s4V8Y3A6C8uFIEXRFiwiXCs4FTvTjPsf7iq4wUAi /S/wdZm6+IjC3e/hBiYyNkiSmcxsK9gTsc+2nE7RAESOGpVOJGy86T7csEH/SWuFbAqd trYB7ljkitwCXEwBDhfbtVwf3AOLxLoP0xBlmG5UK7D+ALd7+gptiBLSh8TSdU7iir+3 jFlw== X-Gm-Message-State: AOJu0YxHrpWsuCPqLufu7WrcMRjmYdv4oudbdgm40ovmoXquhlRjuWhP NZ91O2qOJcooujVoFAb9MmiN2Lky5WHlYJ2NA+VpDKH1dv2qaXzjfTIcyS9423biFBCpGVVFCwp HoE+1RfA= X-Gm-Gg: AeBDietPHcWlYKeRZvdeO/rszv2wCG9dX4S/O9ZqkUwARURM7xTqKWBHqTjgl/tQYZP ct6WVdm0X4+yN8V5fXYn/0WiP0RhSSfKVOr67aGzr/4vEgnnhdcWCBNttqsZ1H77mWalI9OiBe9 0F9HPgbhRvvdwFzZiqX3+qEo8D9F78ImRCB4VGzm+KkyS+f3LbhmM83q+zkrrIB/Mjdj7NnxU/e eARQcfSVORaKobKHUdJvYSMvItHQWlZQ9t2vImad+jzjtp4B1VMi4/rQ9z71IEuSEap2fqBqPXE V/k0vtb0qQIct6sqAJRdF7SM0V0cQwtxtuZ0F2WKaCoTHqvt1EIgHOpA90mLycR8RgqgRNSJfTS bWJ85ubowSYSvPKoWUl40+/SKjUm5V5Pt0tfPuujfkV9yk+QpDUF4qJrWdIMW7Wo5FPrvVJZE+6 I+DoA2Vb8/KnsSPEWvhW2C5uWsdKIxwEQhiMlXqMNzRV9OGtA= X-Received: by 2002:a05:600c:a412:b0:48a:525b:e148 with SMTP id 5b1f17b1804b1-48e6748a724mr31423435e9.4.1778247952229; Fri, 08 May 2026 06:45:52 -0700 (PDT) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e6db1413csm178475e9.29.2026.05.08.06.45.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2026 06:45:51 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Al Viro , Kees Cook , Eric Sandeen Subject: [RFC PATCH 1/6] ufs: Move long delayed work on system_dfl_long_wq Date: Fri, 8 May 2026 15:45:29 +0200 Message-ID: <20260508134541.282073-2-marco.crivellari@suse.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260508134541.282073-1-marco.crivellari@suse.com> References: <20260508134541.282073-1-marco.crivellari@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently the code enqueue work items using {queue|mod}_delayed_work(), using system_long_wq. This workqueue should be used when long works are expected and it is a per-cpu workqueue. The function(s) end up calling __queue_delayed_work(), which set a global timer that could fire anywhere, enqueuing the work where the timer fired. Unbound works could benefit from scheduler task placement, to optimize performance and power consumption. Long work shouldn't stick to a single CPU. Recently, a new unbound workqueue specific for long running work has been added:     c116737e972e ("workqueue: Add system_dfl_long_wq for long unbound works") Since the workqueue work doesn't rely on per-cpu variables, there is no obvious reason that justify the use of a per-cpu workqueue. So change system_long_wq with system_dfl_long_wq so that the work may benefit from scheduler task placement. Cc: Al Viro Cc: Kees Cook Cc: Eric Sandeen Signed-off-by: Marco Crivellari --- fs/ufs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ufs/super.c b/fs/ufs/super.c index c4831a8b9b3f..6dcf6d048cce 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c @@ -672,7 +672,7 @@ void ufs_mark_sb_dirty(struct super_block *sb) spin_lock(&sbi->work_lock); if (!sbi->work_queued) { delay = msecs_to_jiffies(dirty_writeback_interval * 10); - queue_delayed_work(system_long_wq, &sbi->sync_work, delay); + queue_delayed_work(system_dfl_long_wq, &sbi->sync_work, delay); sbi->work_queued = 1; } spin_unlock(&sbi->work_lock); -- 2.53.0