From mboxrd@z Thu Jan 1 00:00:00 1970 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: 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: Viacheslav Dubeyko Cc: John Paul Adrian Glaubitz Cc: Yangtao Li Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Marco Crivellari --- 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 = 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