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

(cherry picked from commit 40734fc57ec0158690e9f03284229553b050b8ea)

Details

Provenance
Keith Reynolds <keith.reynolds@hpe.com>Authored on Feb 15 2023, 6:56 PM
jhbCommitted on Sep 6 2023, 9:56 PM
Reviewer
markj
Differential Revision
D38559: aio: Fix a test and set race in aio_biowakeup.
Parents
rG8165540af2cd: aio: whack "set but not used" warnings
Branches
Unknown
Tags
Unknown