mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 23:57:30 -04:00
uma: Use atomic load for uz_sleepers
This field is updated locklessly. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
c0f52e1bdd
commit
8a6776ca0f
1 changed files with 1 additions and 1 deletions
|
|
@ -4186,7 +4186,7 @@ uma_zfree_arg(uma_zone_t zone, void *item, void *udata)
|
|||
* a little longer for the limits to be reset.
|
||||
*/
|
||||
if (__predict_false(uz_flags & UMA_ZFLAG_LIMIT)) {
|
||||
if (zone->uz_sleepers > 0)
|
||||
if (atomic_load_32(&zone->uz_sleepers) > 0)
|
||||
goto zfree_item;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue