mirror-linux/net/rxrpc
Marco Crivellari 27ce71e1ce net: WQ_PERCPU added to alloc_workqueue users
Currently if a user enqueue a work item using schedule_delayed_work() the
used wq is "system_wq" (per-cpu wq) while queue_delayed_work() use
WORK_CPU_UNBOUND (used when a cpu is not specified). The same applies to
schedule_work() that is using system_wq and queue_work(), that makes use
again of WORK_CPU_UNBOUND.
This lack of consistentcy cannot be addressed without refactoring the API.

alloc_workqueue() treats all queues as per-CPU by default, while unbound
workqueues must opt-in via WQ_UNBOUND.

This default is suboptimal: most workloads benefit from unbound queues,
allowing the scheduler to place worker threads where they’re needed and
reducing noise when CPUs are isolated.

This change adds a new WQ_PERCPU flag at the network subsystem, to explicitly
request the use of the per-CPU behavior. Both flags coexist for one release
cycle to allow callers to transition their calls.

Once migration is complete, WQ_UNBOUND can be removed and unbound will
become the implicit default.

With the introduction of the WQ_PERCPU flag (equivalent to !WQ_UNBOUND),
any alloc_workqueue() caller that doesn’t explicitly specify WQ_UNBOUND
must now use WQ_PERCPU.

All existing users have been updated accordingly.

Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Marco Crivellari <marco.crivellari@suse.com>
Link: https://patch.msgid.link/20250918142427.309519-4-marco.crivellari@suse.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-09-22 17:40:30 -07:00
..
Kconfig rxrpc: rxgk: Provide infrastructure and key derivation 2025-04-14 17:36:41 -07:00
Makefile rxrpc: rxgk: Implement the yfs-rxgk security class (GSSAPI) 2025-04-14 17:36:42 -07:00
af_rxrpc.c rxrpc: Remove deadcode 2025-04-24 17:03:45 -07:00
ar-internal.h rxrpc: Fix to use conn aborts for conn-wide failures 2025-07-17 07:50:48 -07:00
call_accept.c rxrpc: Fix to use conn aborts for conn-wide failures 2025-07-17 07:50:48 -07:00
call_event.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
call_object.c rxrpc: Fix notification vs call-release vs recvmsg 2025-07-17 07:50:48 -07:00
call_state.c
conn_client.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
conn_event.c rxrpc: Allow CHALLENGEs to the passed to the app for a RESPONSE 2025-04-14 17:36:41 -07:00
conn_object.c rxrpc: rxgk: Implement connection rekeying 2025-04-14 17:36:42 -07:00
conn_service.c
input.c rxrpc: peer->mtu_lock is redundant 2025-02-21 15:06:29 -08:00
input_rack.c rxrpc: Implement RACK/TLP to deal with transmission stalls [RFC8985] 2024-12-09 13:48:33 -08:00
insecure.c rxrpc: Fix return from none_validate_challenge() 2025-05-29 12:03:21 +02:00
io_thread.c rxrpc: Fix to use conn aborts for conn-wide failures 2025-07-17 07:50:48 -07:00
key.c rxrpc: Add YFS RxGK (GSSAPI) security class 2025-04-14 17:36:41 -07:00
local_event.c
local_object.c rxrpc: Don't use received skbuff timestamps 2024-12-09 13:48:29 -08:00
misc.c rxrpc: Implement path-MTU probing using padded PING ACKs (RFC8899) 2024-12-09 13:48:25 -08:00
net_ns.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
oob.c rxrpc: Allow the app to store private data on peer structs 2025-04-14 17:36:42 -07:00
output.c rxrpc: Fix to use conn aborts for conn-wide failures 2025-07-17 07:50:48 -07:00
peer_event.c rxrpc: peer->mtu_lock is redundant 2025-02-21 15:06:29 -08:00
peer_object.c rxrpc: Fix irq-disabled in local_bh_enable() 2025-07-17 07:50:48 -07:00
proc.c rxrpc: Manage RTT per-call rather than per-peer 2024-12-09 13:48:32 -08:00
protocol.h rxrpc: rxgk: Implement the yfs-rxgk security class (GSSAPI) 2025-04-14 17:36:42 -07:00
recvmsg.c rxrpc: Fix notification vs call-release vs recvmsg 2025-07-17 07:50:48 -07:00
rtt.c rxrpc: Manage RTT per-call rather than per-peer 2024-12-09 13:48:32 -08:00
rxgk.c rxrpc: Fix unhandled errors in rxgk_verify_packet_integrity() 2025-09-14 13:05:22 -07:00
rxgk_app.c rxrpc: Fix untrusted unsigned subtract 2025-09-14 13:05:22 -07:00
rxgk_common.h rxrpc: Fix unhandled errors in rxgk_verify_packet_integrity() 2025-09-14 13:05:22 -07:00
rxgk_kdf.c rxrpc: rxgk: Provide infrastructure and key derivation 2025-04-14 17:36:41 -07:00
rxkad.c rxrpc: Add more CHALLENGE/RESPONSE packet tracing 2025-04-14 17:36:42 -07:00
rxperf.c net: WQ_PERCPU added to alloc_workqueue users 2025-09-22 17:40:30 -07:00
security.c rxrpc: Fix to use conn aborts for conn-wide failures 2025-07-17 07:50:48 -07:00
sendmsg.c rxrpc: Allow CHALLENGEs to the passed to the app for a RESPONSE 2025-04-14 17:36:41 -07:00
server_key.c rxrpc: Allow CHALLENGEs to the passed to the app for a RESPONSE 2025-04-14 17:36:41 -07:00
skbuff.c
sysctl.c rxrpc: Implement path-MTU probing using padded PING ACKs (RFC8899) 2024-12-09 13:48:25 -08:00
txbuf.c rxrpc: Remove deadcode 2025-04-24 17:03:45 -07:00
utils.c