diff options
| author | Jakub Kicinski <[email protected]> | 2025-03-24 22:45:31 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-03-25 17:06:49 +0000 |
| commit | 0a65dcf6249b75c841b4218426b0d246a805c7e0 (patch) | |
| tree | 11501e3fe35fdf79950fc41e3f0b5529df61a845 /net/ipv4/tcp_timer.c | |
| parent | net: explain "protection types" for the instance lock (diff) | |
| download | kernel-0a65dcf6249b75c841b4218426b0d246a805c7e0.tar.gz kernel-0a65dcf6249b75c841b4218426b0d246a805c7e0.zip | |
net: designate queue counts as "double ops protected" by instance lock
Drivers which opt into instance lock protection of ops should
only call set_real_num_*_queues() under the instance lock.
This means that queue counts are double protected (writes
are under both rtnl_lock and instance lock, readers under
either).
Some readers may still be under the rtnl_lock, however, so for
now we need double protection of writers.
OTOH queue API paths are only under the protection of the instance
lock, so we need to validate that the instance is actually locking
ops, otherwise the input checks we do against queue count are racy.
Acked-by: Stanislav Fomichev <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
0 files changed, 0 insertions, 0 deletions
