HomeFreeBSD

aio: Fix a test and set race in aio_biowakeup.

Description

aio: Fix a test and set race in aio_biowakeup.

Use atomic_fetchadd in place of separate atomic_subtract / atomic_load.

Reviewed by: markj
Sponsored by: HPE TidalScale
Differential Revision: https://reviews.freebsd.org/D38559

Details

Provenance
Keith Reynolds <keith.reynolds@hpe.com>Authored on Feb 15 2023, 6:56 PM
jhbCommitted on Feb 15 2023, 6:56 PM
Reviewer
markj
Differential Revision
D38559: aio: Fix a test and set race in aio_biowakeup.
Parents
rG96871af01382: inpcb: use family specific sockaddr argument for bind functions
Branches
Unknown
Tags
Unknown