diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2025-10-05 15:38:06 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2025-10-05 15:39:04 +0000 |
commit | ccb600906f152df310794f146eac54372e6b2665 (patch) | |
tree | e3f561dc64149f535e0fc5ffe1bc358b7aa5dd17 /usr.bin/netstat/if.c | |
parent | d0a35ec01c31b498bd9996b50641a8629757b65f (diff) |
The macro is misleading and of questionable value to begin with.
For starters, it is used for both spinlocks and regular mutexes (the
latter only the in the slow path), which have fundamentally different
requirements on unlock -- spinlocks are guaranteed to not have blocked
waiters and can blindly do a store.
The commentary above the it is also head-scratching:
> Release mtx_lock quickly, assuming we own it.
You can't *just* release a sleepable mutex "quickly". The only legal use
right now is when the turnstile lock is held.
Note that unlock of a sleepable mutex without using RMW atomics is very
much possible and may show up soon (tm).
Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'usr.bin/netstat/if.c')
0 files changed, 0 insertions, 0 deletions