From nobody Sat Jun 13 08:31:55 2026 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: quoted-printable 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: =C2=A0=C2=A0=C2=A0=C2=A0c116737e972e ("workqueue: Add system_dfl_long_wq fo= r 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 =3D 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 =3D 1; } spin_unlock(&sbi->work_lock); --=20 2.53.0 From nobody Sat Jun 13 08:31:55 2026 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 304FF3E63A7 for ; Fri, 8 May 2026 13:45:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247958; cv=none; b=g5bjDZnRCcUG2wN/PaEa8pY85Vk6OKuBLO2XA5Apgd+T8QqdaFho3IH11mkYWULu5BwS/N6EbT3CmMuh+dfP35T5yMYEB4Z2Anx95RABe4VRie5bgc9HEv4RD1bDi4kE5OdSVOpb8oEmp4uVJp5FE93Dv7s/D48aFPEVgZ7GYF4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247958; c=relaxed/simple; bh=x5R+hraEhRXnrYzPR+VvU6e3VuR7TF5w7ce72ny6MsY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=JmSAdA8yUxOOIftbbR10yjlqJlNJb4M+VobCJBunUZZM4X8yrstE3RcrU9McffSbL0IU9mp5Do7yaYMmqDqDLj+S42vT6/itRz7XlQczzjIrhfqkOrCASo9wzlT2CApV7a4zOaodeYhdbQmHzyQ5EtpWwuwL7/1ZnKWDtYGEdDg= 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=aaaNlj8r; arc=none smtp.client-ip=209.85.128.53 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="aaaNlj8r" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-488e1a8ac40so19804095e9.2 for ; Fri, 08 May 2026 06:45:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778247953; x=1778852753; 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=sUC6icIU8/by706DNfsxKmniCKIFMGJQAqyCvmSbiBc=; b=aaaNlj8r6XfEwTaezEXA9ugx6kgHLjHca1Mzm5sU7bND6YAFnxOOPtLAU3gO5YLhT/ epEsiH6kFAm39IYTS3D7478DOomEZeaB48/X0C0+9kHek5MGK2k/Y2s8nqFcqDM/tGpe 9ye05cGMNVKeV/j7TLaKGu3um3zzx06IyRXviQE/yhk2PQb8qBCy/DJa1qZo/nk9/1Vz pPVQKdrfge9x8olaypnkqaezIx3t/4uE6/hLP2wjG6Pi4Qrk01b06TIQxlBa+hQ5QCUI nfXrZ0iXvVyOYjT4bhZBW5I/vwcCLsjYAdADGtwvbDgZ6dlLW1jW2R90n6Ilwc21tGlv /Kzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778247953; x=1778852753; 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=sUC6icIU8/by706DNfsxKmniCKIFMGJQAqyCvmSbiBc=; b=drH0ef6Xtqp3fp2DHsu4cCk6SMGHl4fpywfetGZASrqObjr49DBt1qyjct4A01YH4u eQobt2hbweOyRmiQPUPuYHJ+EgDrB47Zuce18FHiwS+pmEc4eLbUoB3PiUeAejR8TxC/ eL+tAt6ZD8iCuh5JQnkYqM/5Yz7OiCI9yKr4EiljMlcsYI+b+FcD4vla6w1xQuFFRFQO 3SgTyqYEc5VnP5VdjferyXQcW2lCg0AjOvUJAetGLsZxHHkq7kM4kccPO2xdLk7V8k7F nDd3tY6il86JGSx5dFfMqvCzgMdal33gvmpTjfIkuEy8qTfw23IzSwLVeDDItRcVjyA5 cxBw== X-Gm-Message-State: AOJu0Yw9CmebOw5hf8huv8kBoAtFMzNMuVTXXNkJjt53ZxC9ZDr3IDq8 STbhopPF2BHdrWHhz8qvJMLEH7QH+GP5l3AZIO4yvbkWUDL6re9sAf4jG80rxiFr7X16rSWgKuX uX8AeBSc= X-Gm-Gg: AeBDieskVQ2OfCdc0o6uxbNMcP7uXQ78LW9Ya9sXeNWIv8f9YZNgoXRklmYCNFnsb0y cjSkwYLWEpD77By8yd7oQ111fLGsXzoM3Lalg8MTUviqB7rEteIrl0sNXADQN37wOLUT2dwCVjE qSG6LYVuVrizIrlQZ8/mRtllIUpuKovbQ4kTWPlm8chWdMOzDRwwvfrIMfXvBPE7t0KuX1tWsoT QI6/f1A1lcsKXdxXbeKE2yGXbfe7ktlJFgVKhsmNV+e2TFi+ONbe3t4nOrf4SChU0609CPm/FYy q3IsXmd/pe7BN7n9Qi6z2YP8nkIh8or2yIp9zdCtQNeCAczktKKVJq2uIfzYeB5HlmTTJcl1CtH /6qfGsMJNDxOSiaEepy9Cgmxw7XUU1E6ofNT6Eps9QnDoSR5bPwmW4QGf6Uxr5l7GJEvcevQf/h p5ezwXpF5AIGTlA+45T+BhPsxBsgKVKVV7ABiB8EF0Fuc9gdI= X-Received: by 2002:a05:600c:871b:b0:48a:592c:e655 with SMTP id 5b1f17b1804b1-48e51f45eddmr195991075e9.17.1778247953241; Fri, 08 May 2026 06:45:53 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2026 06:45:52 -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 , David Woodhouse , Richard Weinberger , linux-mtd@lists.infradead.org Subject: [RFC PATCH 2/6] fs/jffs2: Move long delayed work on system_dfl_long_wq Date: Fri, 8 May 2026 15:45:30 +0200 Message-ID: <20260508134541.282073-3-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: quoted-printable 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: =C2=A0=C2=A0=C2=A0=C2=A0c116737e972e ("workqueue: Add system_dfl_long_wq fo= r 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: David Woodhouse Cc: Richard Weinberger Cc: linux-mtd@lists.infradead.org Signed-off-by: Marco Crivellari --- fs/jffs2/wbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jffs2/wbuf.c b/fs/jffs2/wbuf.c index 8ff7a0b6add2..3b7803c75d58 100644 --- a/fs/jffs2/wbuf.c +++ b/fs/jffs2/wbuf.c @@ -1177,7 +1177,7 @@ void jffs2_dirty_trigger(struct jffs2_sb_info *c) return; =20 delay =3D msecs_to_jiffies(dirty_writeback_interval * 10); - if (queue_delayed_work(system_long_wq, &c->wbuf_dwork, delay)) + if (queue_delayed_work(system_dfl_long_wq, &c->wbuf_dwork, delay)) jffs2_dbg(1, "%s()\n", __func__); } =20 --=20 2.53.0 From nobody Sat Jun 13 08:31:55 2026 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 472943ED11A for ; Fri, 8 May 2026 13:45:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247958; cv=none; b=gXILC+S+if68YIblvpsbrdSsvh9rLi/Sncw34YB4NYZnFtH7YK6KHDkN28UbNQjUdBluOnzLFzK8prFenfnJSyt98SCW6f0o3GFhggsMtN2YmwyCeVjSrFEfWZw0nhmXc2aFb7GTmhkxbWxOVngoyw8ZMfPQpe/Iddn6gV+NhXQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247958; c=relaxed/simple; bh=vVpE+sk92WLPbTkS8UwRksrlO+TCUZy5fra6+QJlA3M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pp8DyszyYOvZlbki19XuYa+KWrLMVTV5a9G0UYkWwgzoFczFzNVjAd0O9u1svCdIvQEMjoqSC6aCdsRpiR/X80iPbzYNOIkTdNFMnZhvJ5+SAhOtzflbtjH6+qrQu7DrNyoUavsSy8zsFXu253/jfuPZ2tCQxMYOGZqYIKLAvnA= 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=ED8G/+9v; arc=none smtp.client-ip=209.85.128.44 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="ED8G/+9v" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-488af96f6b2so23347795e9.0 for ; Fri, 08 May 2026 06:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778247954; x=1778852754; 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=78phUcQ5Rif/EmDwGcADRoP9ZKpZ/G8QAJtY0ciIHXg=; b=ED8G/+9vg8Z0Dc9aGmDOEy5dyWhyjXJCWLRgNOBxq4vedj0zsiFQeLrTUbQDhSOIaR y5bTlqcdjzYGA9rBOt/BYo0k8fOF94t+ap8NsGudc0shGa6DsltktjkVZRcNw08p6C6x x9wE3/SqG0POERKZcrVTI+V68l/lpTquJBViLz+WujlHYqnttchPrvMe9GXeQdNAKjoM NkjF59Dw2prbMp36hSahIU5x4Nr4pU2q/PusUDEbhhhlolp1Yowa2vXW431StO0H767O eBolmtrUcb5vs1C/vwC8qcVcpq6R3rmlMyoSXyufP+ugJj8BsaAt/Yls55m1/r7cU6Wk RMfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778247954; x=1778852754; 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=78phUcQ5Rif/EmDwGcADRoP9ZKpZ/G8QAJtY0ciIHXg=; b=ESN1MVrj0rh3Ufqkz5D9xHQOX0knV+HwbQryPznqg2IY5ISvLk8eH06hRr5QKnAShF 1w9AXoaRMLxT5NDJ7fMfXSDWhdc3qBvqtUvgiwGDiMdk+XSYKxbJYAEMNuW7k9HFTowS r9bm6ZKGkIHdvseTWriaeHXrHuEfO3mk66UDhC+Hk4qiqvPROMC4BqVsDDVHGticlqyF xk3X4s92a6EE8nxU1R9PSFD+aEA7k/FBYCIqFoOQrtP9lNSf3IhixstHK8JZpFlx1zyZ ZimxU2gHEbYsoMFE19/QBEtU+MeXAvhUos6nyKkW2mK/D1t4IJRntyDyw4mQEOYRGJST 1baw== X-Gm-Message-State: AOJu0YzGi2owCWf5KGfGRiNisIGvLRyGm+H2XkTjGT7c5tB4kiFgdMlH uAltxoa38ITq2nCEBTrEXvkJWKBXbUM+p/oXtyQZ4rhMUNcEkk/mi9YfIXRZd0iSzR89Y0317+J io6X2OM4= X-Gm-Gg: AeBDieugq8+kQ/Pr6+byQ5qvEQ9Le+HVBqjswi3dm/9ivtwL0/X9w73k7PusUQjm215 7yS4vJ21GeBXhU98nufPUa+/i6fAdWqwyKD+qBUQOIiKmwo0bjoqNNFZZ4buN7bkJWmwejCPhnn Y742uTkCJmXMEsSeeIBLteZnfdq9Q5NZ2eDRH/xtmKGT3ZqNtfP4/4hc0Ld+4qGWC9d5YvAqlQr JKLU2rP2g/JbOQJHH7kZ+JxUfkfB4c8SCEIdtyb138ZAOsBaWgHZYojsm9wH6wK9ok4zJTuc0By 5uhYYxTHC+FREmai8tbx8NHfQ/QeGCqDiWQ9hoZzCnliMQpsiygSQKRJkAN3QL4Tl3J73zx5Nkw 9MQnG/I0W2rrnoVl2qaOcZumN0UGJ+3X8Zp2ghEL3hdMO2hjNvGh0QrgBLHfvFFtPBv4cGeViHM YyVcGeQUpVIbPkBAPqChYUAUuTtZwhEDOaGQ3VjO3qQY1xzQk= X-Received: by 2002:a05:600c:811a:b0:489:1c32:210d with SMTP id 5b1f17b1804b1-48e51f369c3mr203601785e9.15.1778247954175; Fri, 08 May 2026 06:45:54 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2026 06:45:53 -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 , Viacheslav Dubeyko , John Paul Adrian Glaubitz , Yangtao Li , linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 3/6] hfsplus: Move long delayed work on system_dfl_long_wq Date: Fri, 8 May 2026 15:45:31 +0200 Message-ID: <20260508134541.282073-4-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: quoted-printable 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: =C2=A0=C2=A0=C2=A0=C2=A0c116737e972e ("workqueue: Add system_dfl_long_wq fo= r 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: Viacheslav Dubeyko Cc: John Paul Adrian Glaubitz Cc: Yangtao Li Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Marco Crivellari Reviewed-by: Viacheslav Dubeyko --- fs/hfsplus/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index 40a0feda716b..12ba672e13bc 100644 --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c @@ -314,7 +314,7 @@ void hfsplus_mark_mdb_dirty(struct super_block *sb) spin_lock(&sbi->work_lock); if (!sbi->work_queued) { delay =3D 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 =3D 1; } spin_unlock(&sbi->work_lock); --=20 2.53.0 From nobody Sat Jun 13 08:31:55 2026 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 F0F1A3EDAA8 for ; Fri, 8 May 2026 13:45:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247959; cv=none; b=LnqdmAXX90r76/DHxJzBHdUyWOduzCYR9dc3peBYJBhxkKKxvXncrqslpaF7Wi6cNdcS1J4kLQc37dyU0p9P0KntZwKSsaeSbHHXnMjZsdGD1tsJo08v5kiQMER67XXdpE2daLcrOc64wQPQzuqIYQKANoll6dxzGnSoDzkSMoY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247959; c=relaxed/simple; bh=e07i2YK+wbCvnsqjMsY+gV2EkbscFGBLAuO1j2g14YM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EvyE54tgfml1+9wil9uKvDJl9+MYSgIwO1YvSktF5l2XsoxbaapqOUxTSMjwSnSl75cUjBKo4G+G/FqavFJFKi8nxuMAxBB/y12C3q7N/3G955VuCObb/eqrLUHBZgCuNtxo9DsjFI45ZXROfnbMnxJhSoaTwq26VLmu1I9rWe4= 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=KrkjfKdh; arc=none smtp.client-ip=209.85.128.49 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="KrkjfKdh" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-488ad135063so17819355e9.0 for ; Fri, 08 May 2026 06:45:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778247955; x=1778852755; 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=kFoAeBaNo/DLG3eJWZHalYi3P9xH8JB229vRyRrtX+0=; b=KrkjfKdhjRuQ+QH+1nu8lYzO1s+XyIJevDxpjnrDyuySJQzqxEixtlhG7AtMLkzLwg CXyV+so40lHhr10yIQIRWlEXYboMlRvqtMVWyQgI6sAb4RurBjLQ6mh48Cfs3GsvFH54 9hl7Hp/A8eNTJ7ZBjtdmG4ySpmIAMFwTwM46AabDpaA3NxFZwUFaK882VhbQgcloP0Jv QZN+/JAmhHztwcs5DVnHIrgZXjFG1KEs1J29ln5SClzVDGw7ApzlX6JcCvXpNNPKmemG +sIcmt91guNafO70Z7y0DwMUdnLrecwHkCn7qC1Ebm5RF/HvtuCJH1GWSJOUX5dgBy4o OzkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778247955; x=1778852755; 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=kFoAeBaNo/DLG3eJWZHalYi3P9xH8JB229vRyRrtX+0=; b=m3te2sZcy6UD5qY+DmGyC4ylhoysIV068K0nU94K+lNRsrw7UVEifTNl09dIWZZXCt MWA/LvjdV+8pZ1RhJglzqvxNFXRyHS/Rc/R3F8c1g6cPhG/1XfFLZBfOIM4zA4YIyl04 corkMzo2t1snPw8csY43bxJ7rA+R/X+J/KM7WjAQHoJRT7ybS+1oSj3D7b7C1XavO/cb 2Vsd7gDW7qmcP/WFJLWWF9V8ltCFoWviNKGSb0grOXWDXQqgJL8UDjNTukyVCBqoNHTg N1KV5ZifAuA15EvtIzfpP7pOPMskXz11bD70ZuwSX+KRH3MsDmkvJZwjbYPYNk5rwhAf I5Rw== X-Gm-Message-State: AOJu0YyJUzkz7TxF0XLO3ASwhFwUVlz2iT6ghmbmA8OHJEwX4+S5UK6i Kl7j8ufU5ROHr1mnoXgJDwB2eDMGOpK4GOJjUB+RyxQ0TgJh6KvLBHnaSLdTOgmLMUj6f+Hv3+C DoUITe10= X-Gm-Gg: AeBDievPtoaTwh2uoz+cY9QHS3i0980djKGPCouA3aROFrA8nAU9LgNn9od5/47C8WI 23Eb/xJLj8sJZ+22aFh0JTqEV7Lzu934EtJ716skZ4v1fsbmV25zjZ9ieiUNwcOUn1jKKhZHC2d iOvzqZ5WXHWM9nq7BKltS0/tFvDfqG16wBJ+w7Yb96dSHc7pYacoMg30S3lWYKH2yUitagvhi+2 H9MgSVw5PPPKv9Lt7FIQdGLf4kopXbjoWhjcSMbhc7o9IuQejglTznIZCnSWsf4i73LnG4+YZKV VDjFup2gJSyN+IBuETvJzHtfMx3T+5mz7Sr2Hvw5d4X3YlVeRKCywowv04eons2K8biBsKy2tZ5 6fV/1hmZITYdVsdJPsjxge4aQ5noHjpcCxaMXOg9WiJKvHvZGFSPEbO8z1K6lFtT0nVxkIXV7Dv Cz0eF4wHs0TEsM+Rl+bfZJrfESQZhHwovV1CXP3ckGxrXJAfOLLhCywC76iA== X-Received: by 2002:a05:600c:8011:b0:485:35d3:ce59 with SMTP id 5b1f17b1804b1-48e51e1a545mr196601095e9.10.1778247955127; Fri, 08 May 2026 06:45:55 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2026 06:45:54 -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 , Viacheslav Dubeyko , Yangtao Li , linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 4/6] hfs: Move long delayed work on system_dfl_long_wq Date: Fri, 8 May 2026 15:45:32 +0200 Message-ID: <20260508134541.282073-5-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: quoted-printable 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: =C2=A0=C2=A0=C2=A0=C2=A0c116737e972e ("workqueue: Add system_dfl_long_wq fo= r 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: Viacheslav Dubeyko Cc: John Paul Adrian Glaubitz Cc: Yangtao Li Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Marco Crivellari Reviewed-by: Viacheslav Dubeyko --- fs/hfs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hfs/super.c b/fs/hfs/super.c index a4f2a2bfa6d3..cf4e7a6112e7 100644 --- a/fs/hfs/super.c +++ b/fs/hfs/super.c @@ -82,7 +82,7 @@ void hfs_mark_mdb_dirty(struct super_block *sb) spin_lock(&sbi->work_lock); if (!sbi->work_queued) { delay =3D msecs_to_jiffies(dirty_writeback_interval * 10); - queue_delayed_work(system_long_wq, &sbi->mdb_work, delay); + queue_delayed_work(system_dfl_long_wq, &sbi->mdb_work, delay); sbi->work_queued =3D 1; } spin_unlock(&sbi->work_lock); --=20 2.53.0 From nobody Sat Jun 13 08:31:55 2026 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 1A7DA3E8686 for ; Fri, 8 May 2026 13:45:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247960; cv=none; b=QFfXfk5vtFcX+ETpetq2W4+X7kerwMSGa1503CewNlc1DbC6t/zAy5XDbRZ047uW3IER+dt2wmf+q05gU2peJslcaM3pNughKc9GTzgrvfXHzvCyPGKU9B1Za3IBSjDo9wTiCnRyAsKyuju+5w8nK8AH5oGlIV4yiSdAJ4EtaGw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247960; c=relaxed/simple; bh=HbOMvrveZ7GrPJvW/6bKtTuYOy45fOlbCFun/XxRkGA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=sI5krJv3X4JeCX6o2+t/Mu1TaIokaOylcq21ebk7VqX8cpW3h4q75MOsQ4DVmjjXchu/STiNIR8GZvoWLkLVsHauhz8oHm1EeIbm5Ubv1+urcQc917t1gaoZSbq7VL563bkVMROVHlC5IhPRfL+qP40KOsbPcEIJDicWpuJIvyw= 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=B7XK3MVx; arc=none smtp.client-ip=209.85.128.41 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="B7XK3MVx" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-488b0046078so17000935e9.1 for ; Fri, 08 May 2026 06:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778247956; x=1778852756; 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=A6ZLFvL+lKydXpO4WILavVeDHicN0myZST2IZFNTkj0=; b=B7XK3MVx5C1MpciTIGMtCkRgLh+3KgzrNq0uKYjhUbj21r7to0uizFvQl8cuu4XnTH fIEz03UluZIwJ8i8oMgYPlzYRmEdv0hdEIY2OC4r4qF2PcyqmYUIx6iZk2n62XmExcpT Ac/S8qVdoTXufkggtRZRULSMlWDsG0sNbkZqs8j9L0SxmkWZTGhNsx980HhSYm7rwdFl TStkp7oNuDaZW4cppp+cPDXG/zzi6cRFqyH9Bjn3f+ccMOT9GJEuokaBOHWo22xNrani WpmQsdTSe+ZkE7I/v4zt99ADrAeNw6E076f93CYkBj41kY283Vc9UvqOlBC9RnpjLhnt Cbfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778247956; x=1778852756; 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=A6ZLFvL+lKydXpO4WILavVeDHicN0myZST2IZFNTkj0=; b=RsqnQhSzTfqztVRnPD6RgQpYD913Ldvaxz6/bxsanSmhIFX8tdXyBsLJDLbG1mQOUL ZcIj5d35yG2W5sxUfX+kkZKy8b4/ljr+1yrXHuRnCiQp8R9mBN0Kov4OR8uyfMb9dHOZ fVG7jK03nTPFTID/F4jMc/tP5U4l4HidpBHDK3wBuV21jlCJXjlGtMqcOk4W+JFiZyQJ sq311hlzF3wpiWApwRJ18kwnvKKoFant8jkTwi9POGugFYQ6s/1YVTDD8HtGyPSex3Yd TK0ewb2B8zQwhTJZ8m6MdL5Voh5U3ZHGLaGMTtSApNnAA5Pimw31gALqs16FhDaUbMTQ k4ww== X-Gm-Message-State: AOJu0Yx8WRkQPNmoMH4aMSNTzrii24bjS27+wf08dxnXFQb1ud1dAjPh jGK2whLnlraDUY6BNSG1cgAne+zVIcVgsAAEo8qyPvwwoHHdaoKun50kiopRYqokdEW5kgDRP7Y Vl45DwPA= X-Gm-Gg: AeBDievYIxakZBWAdPv8ipF/Jncrnijj4hH9GYHInWc1F9BI98LhBzoaxCf0ZKmWNMV 3NXPlaNFhyvGNSQwmldVyE+4LCBD2krlMSBWitgUfHigJQNsd+31s10ZlfuMko/Ed4MHzXviaZU JedxEyMtKrNto1VOLqdZDkFMcpykdcGpyi3lNys7Y7wFcGcJFZ6P/3LXWVp4trAYb8Rn225xgGx Bo9qTDZaRQfAE6ypX79pZyQs63qUkLZwXS2V+szVBuUFx6sXk3uCZWb5+X0xmftZpmr0jZ6UajX 53scm9io1U9kAwAO+6evaX1kbGL8m2QkY2O7zim3Z/aPWqAcLIO45N84cYKwPOwaZUhZoJL4KvG 7NkKxqTbkB97iYidonZPcL2JWmkJGPmGilOB3o7WzK2ndWy+MIYSqBgcIFaYSaxY/6MAPqqyNdp HWl8bwfW5jcpLq16Z5GJDATjVcF4ImJBJbgI0b2QjA0bNc51FMVi+9iTQSGQ== X-Received: by 2002:a05:600c:a118:b0:489:a4:e578 with SMTP id 5b1f17b1804b1-48e51f32870mr151383775e9.14.1778247956168; Fri, 08 May 2026 06:45:56 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2026 06:45:55 -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 , Miklos Szeredi , linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 5/6] fuse: dax: Move long delayed work on system_dfl_long_wq Date: Fri, 8 May 2026 15:45:33 +0200 Message-ID: <20260508134541.282073-6-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: quoted-printable 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: =C2=A0=C2=A0=C2=A0=C2=A0c116737e972e ("workqueue: Add system_dfl_long_wq fo= r 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: Miklos Szeredi Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Marco Crivellari --- fs/fuse/dax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fuse/dax.c b/fs/fuse/dax.c index f6cf00a8938c..8b53625ac7ab 100644 --- a/fs/fuse/dax.c +++ b/fs/fuse/dax.c @@ -113,7 +113,7 @@ __kick_dmap_free_worker(struct fuse_conn_dax *fcd, unsi= gned long delay_ms) free_threshold =3D max_t(unsigned long, fcd->nr_ranges * FUSE_DAX_RECLAIM= _THRESHOLD / 100, 1); if (fcd->nr_free_ranges < free_threshold) - queue_delayed_work(system_long_wq, &fcd->free_work, + queue_delayed_work(system_dfl_long_wq, &fcd->free_work, msecs_to_jiffies(delay_ms)); } =20 --=20 2.53.0 From nobody Sat Jun 13 08:31:55 2026 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 37F713E5EC9 for ; Fri, 8 May 2026 13:45:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247961; cv=none; b=g55fQiagL0q2e6p2Y4iWy5FAkwL2Z08MISb/pY1Z5coEDkFJJmBdNAUrpTLJCXoOzsHkER8ZNEsqe+obUDEJBT8+LM6gCq33fVftmevEg9c6StEh4T6OKiMZX78ubfxTj9TEpjwytE/XwKNCqr7HbV0O/cs2KW55fMDhMngNSf0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247961; c=relaxed/simple; bh=x54ah22Wc1H/lycjg8gZlMfozlhFoOnMK4xmTmDdqDU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ChmksXXvuaGcvfyySKJmbgP9Pt8JfoghH+1PqMGPvjWz+hbJjl1DX/IY3uvFVzcGv9fGJlHCHK6LIH0LjmrhM9xcC+ZoofHnkUMbJuX0v7JEzL+yWRZnEdD6nergayn+5kBsDsjOdUrg8G7Y+ZgEEhyhRw0bDQqv9rv1e65p65M= 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=d2fWYkwU; arc=none smtp.client-ip=209.85.128.53 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="d2fWYkwU" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-48a7fe4f40bso21985185e9.0 for ; Fri, 08 May 2026 06:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778247957; x=1778852757; 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=jWWi4rREBYVdB+LWWZZk5r5JC16Ku02dMieXneoROGo=; b=d2fWYkwU//B/Q44tI4kEdfqCsRp/nrP+7ameDsExujy8s4vaosF3LB7PJH/uFqHpKW anEpglG5p11wQBc+cPSlmEpcaZ4Dd4NAM13wBuzq/1H0b4n+iVTVMuNZbPfvCdbjJ3iv BntPg+qAiOyJz4bif2Jrk6fh3ZEzJrUVMCRFNAQa6M6BVC/r9u8o/iBSob577flwpcWj cNb/69EObVHYmudYtaSmj1j0sg+GfsaCf8IQPIqGW+yV7BPROgV/oLVS+1UGAnUqafDQ skqahw/wCBpYXxSH4fwoJ2CpB2sWPCTyEarEYizgfstzvWFjztiF9U+O2OdjmpL+w4Cl fHBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778247957; x=1778852757; 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=jWWi4rREBYVdB+LWWZZk5r5JC16Ku02dMieXneoROGo=; b=HuFDGFMOfniJ4ytxVM7sOgUaj0Vqd0rXQ/q9mgQVeJr425tnQKXQuixnhdqazyRmrX DmxIleWdGo4JlkiC992rfMjH44/uttnRWMXA+Zc7Dn+J5iUDdQUMFGNOhd1dZNzkb6MP gHKR9KBNa+IfQao07Op3t8MxI6es13FLzAvkEh+93Vb+i8rktgX6bGiNzyjcQT5VQnuD FuZi5vlwei6hOvmA069tVbgWG9qxgsuGlAOwx6fSJYlNhbW0X06ltq4ttoGe39Jm0tJN Y320OSPApBb+MlZSSBlcRbBUxac20KKolJbw1UrpJFbmuRhkYnCdhK6ku5a5bKcSp1ms Cakg== X-Gm-Message-State: AOJu0Yw8++7PIo4YX5qh+IqwQdXc13PwysEozqCQYPnlhcT5/sHUov1h rNd1RFlsZbinBXiahq9GUwy9qvXW6/GRULIqKWLWCg38vjz9taXQQd2f7Htn8et4NClrXCMGFfz KE87W2rg= X-Gm-Gg: AeBDieseusMmMDYsriJkpW+3i9S/nVtXsifsb5KZUhfOXp5re90dA8va657QqDXlpVh olNMAWYXl8jCoFxBxui8/E/8rLN6laWxqcm5qqpDQ6gO+OAmCINYOMx3noldQqN7CnAWgjp7j2e 2T0xSU841q/VShlFyIk0rTzgKzLk8Mwcqc8ET5faQnmmeCAr4v70A08hujjmUIbFRRhnba167Ey Tgk0+nULUcbEe9C54aaYfuFLv8mpEhI9hdqkJ/y1dSHEiwd3fzm6QrQhiaMjo0rYMhB+cwsYAiX mN0IKS6yHnIIQDkBAlgndMa+uHtNY83kfIMPfXGUHWnxNj19Y7aAz1ykD7Z8ayr20ymmEtH4AzJ bCG8dVPK/A9sggI9S8osL5WlYZFN1FTvNrk3OzXHFjmHlgk75Agdjg2WhJoI5pmTLWs4TN1tkzp 4JE1J33TPEb1MI1tmnPjwaF5Xls0OlUvkL69mkjBWnibg/Gxk= X-Received: by 2002:a05:600c:a110:b0:488:ae6c:42c6 with SMTP id 5b1f17b1804b1-48e51f2e8a3mr156808975e9.14.1778247957078; Fri, 08 May 2026 06:45:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2026 06:45:56 -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 , David Sterba , linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 6/6] affs: Move long delayed work on system_dfl_long_wq Date: Fri, 8 May 2026 15:45:34 +0200 Message-ID: <20260508134541.282073-7-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: quoted-printable 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: =C2=A0=C2=A0=C2=A0=C2=A0c116737e972e ("workqueue: Add system_dfl_long_wq fo= r 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: David Sterba Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Marco Crivellari Acked-by: David Sterba --- fs/affs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/affs/super.c b/fs/affs/super.c index 079f36e1ddec..061da7b795bd 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c @@ -88,7 +88,7 @@ void affs_mark_sb_dirty(struct super_block *sb) spin_lock(&sbi->work_lock); if (!sbi->work_queued) { delay =3D msecs_to_jiffies(dirty_writeback_interval * 10); - queue_delayed_work(system_long_wq, &sbi->sb_work, delay); + queue_delayed_work(system_dfl_long_wq, &sbi->sb_work, delay); sbi->work_queued =3D 1; } spin_unlock(&sbi->work_lock); --=20 2.53.0