From mboxrd@z Thu Jan 1 00:00:00 1970 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: 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: David Sterba Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Marco Crivellari --- 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 = 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 = 1; } spin_unlock(&sbi->work_lock); -- 2.53.0