]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net-sysfs: move queue attribute groups outside the default groups
authorAntoine Tenart <atenart@kernel.org>
Tue, 4 Feb 2025 17:03:11 +0000 (18:03 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Feb 2025 01:49:08 +0000 (17:49 -0800)
commitb7ecc1de51ca7d0a9fa8dbc3f756ab87b99a1838
tree9246975db00a9a1495f9015cda2b6d0973772ed8
parent79c61899b5eee317907efd1b0d06a1ada0cc00d8
net-sysfs: move queue attribute groups outside the default groups

Rx/tx queues embed their own kobject for registering their per-queue
sysfs files. The issue is they're using the kobject default groups for
this and entirely rely on the kobject refcounting for releasing their
sysfs paths.

In order to remove rtnl_trylock calls we need sysfs files not to rely on
their associated kobject refcounting for their release. Thus we here
move queues sysfs files from the kobject default groups to their own
groups which can be removed separately.

Signed-off-by: Antoine Tenart <atenart@kernel.org>
Link: https://patch.msgid.link/20250204170314.146022-3-atenart@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h
include/net/netdev_rx_queue.h
net/core/net-sysfs.c