From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 E1BAE3DEFFB for ; Mon, 20 Jul 2026 10:09:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784542162; cv=none; b=nDWthuCoNoXrYMRmQk+zA69HZwktDMIz+b+SwBRRBBQehY4A5+PUQxvmNvLvJ2HUbtnJWLJ8ua+TTE951B1EZSbUI25G6ups/RemMOajzKEwQuCyv+W7fG4CgUOdYUvkFctNyI+uLyBkV9q3pIZOAaGX8EGblNBfLKHCWuUPSJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784542162; c=relaxed/simple; bh=KcJJfuTcPZ42Gffl+oijDCOzJxqVQLs1QaqJvlj/W7w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=q6UkE8fpomaaZ1wpoXHajXcnWJiH+xjuXoeMLrZlIhBvvp6GOhfI+6ECHcbov9Cta57+W502Uc70aNbQafMHhZXrwzGhpA2DJrF8Lmgw095RjKyMvJCB224YjSA14MYUzcqEMRFJPon+X4vXWvZluqf/Yt23Rgqti87dVpRNJGM= 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=Aaq8p2F6; arc=none smtp.client-ip=209.85.128.50 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="Aaq8p2F6" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-495590dde14so12524755e9.0 for ; Mon, 20 Jul 2026 03:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1784542151; x=1785146951; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=T+SPKWaxytnGRImorl+1NdLSvi5YBLe2qcoISSE03f0=; b=Aaq8p2F6EfNHFK/19GbYqT8l1nN7cHp+4AjjJQnSUZMLdNyyhDvIXF9Iimid3jKKU6 QLZSKJu+grU8t3L9Cw04QcHxadnhUyc1kHO4yPJjOJ/eVwqAmqkT7Pg8uJDrk6GVVxYh 7+9NKWQ6CLTAreO9PcmcYL96kJSyx3sarucWf46jTrX9Eqi1UeHU4hAqVfxmOH4l60ce b1YNWomH3BNJOeyhOsFN7WTKYw9PJECmSc5ceCR2pX6hN15EZMpl0bRKZYxNyGE2lhw5 bwKZ/m1PeTcyYMwEc1yyW10nWKWfx2kkapyufFXZX/JLFr/jIYJtmGSriKzjdZtZXXAO I9lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784542151; x=1785146951; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=T+SPKWaxytnGRImorl+1NdLSvi5YBLe2qcoISSE03f0=; b=VEYs1U9I6NtipHpPqyNnb+/3IhswRSh4epUQ7OAMZaTT0U6QIBm50Tu0xV6Qv97nb0 bOaeF1lokn3fZROpJF/WgehE2cCXJdZ7KKzYJutjI5+S1bVW5DdlV1ucq9DFEQ7ru54H ftR2z/D6B5qeju4cvNIFHM6tHB980DzU+WVcGqbPcbv2tJzv9gOHUi+X5NPCGJ/P26VH /55feKPFWIWDMeZNQ0hxNYZ04tVh86PFA+MQNNFeSy2nZnHgaVUaukwnPztDMcFcdu3k voenB2aiq3vrtngxhJ6zVTQRPT7nR1hWGtHznjVEkC9gJkFjENHpnCoMqeczh/hgL0uP YKmA== X-Gm-Message-State: AOJu0YyAJloSBlLZ+clu1O6xDJajufeTdfE2q1K+vq5i6yNIvxDc8iFC NDAhhi19MtgDMxzm5i/s7xRVu3VJYdk5tN/sPbNIomU39/o3CEEXGFmGSgg6BU2oTGZc/Ma2KYY /waPv6Fw= X-Gm-Gg: AfdE7cn8v4xkZAewZw9n1vtuJmJf8iP+TT5AWEsUIUwYC6fHC5HpbHYBOq7WJVYfK14 V1PSU/3gVh2LsepP16FKjGDjSgIhoS8C7af5l7j7yMbdWw/twYVx5RQgqd8g59e0fRWKGjQouUw fFqpdg3RZXvkfZP5QNI8XKZSt+WniGForeDscbOUUx181fL7BHmhaXXyCkqGwse6KyzjlSBqcTG VrPi7wgKXo8bN98eDQPQ5b/8kjoeuoyPHhp0lmUXppX4YzQIk0x8MG4gULl+QSpvpApNCKV/CMf RLX9/x3j8EikI3c3JPTXjJbLy6HlerdrNS7pmiLwrMhh+4SCGFs2lCsDDusyZ3sWsUCP0HRp6gb ZPp+HU6OYg/BAqpRy3JsT986HBFBYtWpre3I+abGBZX/60bBskxsuXVEOv1Zlus0rs5tpit2Oyx 4zxIP4lf1a7CdDkw0027oc5hvAZw== X-Received: by 2002:a05:600c:198e:b0:495:4f88:598a with SMTP id 5b1f17b1804b1-4954f885a12mr129671915e9.13.1784542150854; Mon, 20 Jul 2026 03:09:10 -0700 (PDT) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4954a2a2504sm294792995e9.2.2026.07.20.03.09.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2026 03:09:10 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "Christophe Leroy (CS GROUP)" , Ethan Nelson-Moore , Haren Myneni , Madhavan Srinivasan , MD Danish Anwar , Michael Ellerman , Mika Westerberg , Nicholas Piggin , Nick Child , Petko Manolov , Richard Cheng , Rick Lindsley , Roger Quadros , Yehezkel Bernat Subject: [PATCH v3 net-next 0/6] net: Move system_long_wq to system_dfl_long_wq Date: Mon, 20 Jul 2026 12:08:50 +0200 Message-ID: <20260720100902.155605-1-marco.crivellari@suse.com> X-Mailer: git-send-email 2.54.0 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 Hello, Currently the code uses the per-cpu workqueue system_long_wq to schedule long running works. Unbound works could benefit from scheduler task placement, to optimize performance and power consumption. Another good reason to have this unbound, is the "queue_delayed_work()" function, used to enqueue the work item. More details on this will follow in the next section. Recently, a new unbound workqueue specific for long running work has been added: c116737e972e ("workqueue: Add system_dfl_long_wq for long unbound works") ~~~ Details about queue_delayed_work ~~~ system_long_wq is a per-cpu workqueue and it is used as a parameter of queue_delayed_work(). This function schedule an item that it will later be enqueued (once the timer will fire). __queue_delayed_work() does the job receiving as "cpu" WORK_CPU_UNBOUND: if (housekeeping_enabled(HK_TYPE_TIMER)) { // [....] } else { if (likely(cpu == WORK_CPU_UNBOUND)) add_timer_global(timer); else add_timer_on(timer, cpu); } The timer is global, so can fire everywhere, and the work item will be enqueued where the timer fired. 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 the workqueue with the new system_dfl_long_wq, so that the used workqueue is now unbound and can benefit from scheduler task placement. Thanks! --- Changes in v3: - rebased on v7.2-rc4 - added "net: ti: icssg-prueth: Move long delayed work on system_dfl_long_wq" - changed also the workqueue in ibmvnic_reset(). Link to v2: https://lore.kernel.org/all/20260706134033.244295-1-marco.crivellari@suse.com/ Changes in v2: - rebased on v7.2-rc2 - dropped the RFC prefix, kept Ack and review tags Link to v1: https://lore.kernel.org/all/20260511092846.120141-1-marco.crivellari@suse.com/ Marco Crivellari (6): ibmvnic: Move long delayed work on system_dfl_long_wq net: ti: icssg-stats: Move long delayed work on system_dfl_long_wq net: ti: icssg-prueth: Move long delayed work on system_dfl_long_wq net: thunderbolt: Move long delayed work on system_dfl_long_wq net: usb: pegasus: Move long delayed work on system_dfl_long_wq net: usb: r8152: Move long delayed work on system_dfl_long_wq drivers/net/ethernet/ibm/ibmvnic.c | 6 +++--- drivers/net/ethernet/ti/icssg/icssg_prueth.c | 2 +- drivers/net/ethernet/ti/icssg/icssg_stats.c | 2 +- drivers/net/thunderbolt/main.c | 7 ++++--- drivers/net/usb/pegasus.c | 9 +++++---- drivers/net/usb/r8152.c | 7 ++++--- 6 files changed, 18 insertions(+), 15 deletions(-) -- 2.54.0