HomeFreeBSD

Fix handling of transient casueword(9) failures in do_sem_wait().

Description

Fix handling of transient casueword(9) failures in do_sem_wait().

In particular, restart should be only done when the failure is
transient. For this, recheck the count1 value after the operation.

Note that do_sem_wait() is older usem interface.

Reported and tested by: bdrewery
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on
Parents
rS350477: Feature-complete NVMe Namespace Management.
Branches
Unknown
Tags
Unknown