]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net-sysfs: prevent uncleared queues from being re-added
authorAntoine Tenart <atenart@kernel.org>
Tue, 4 Feb 2025 17:03:12 +0000 (18:03 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Feb 2025 01:49:08 +0000 (17:49 -0800)
commit7e54f85c60828842be27e0149f3533357225090e
tree6f46a9a6f26b4cda58852ffec1cbd92fd5cd2986
parentb7ecc1de51ca7d0a9fa8dbc3f756ab87b99a1838
net-sysfs: prevent uncleared queues from being re-added

With the (upcoming) removal of the rtnl_trylock/restart_syscall logic
and because of how Tx/Rx queues are implemented (and their
requirements), it might happen that a queue is re-added before having
the chance to be cleared. In such rare case, do not complete the queue
addition operation.

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