HomeFreeBSD

Don't spin on cleanup_lock if we are not interrupt.

Description

Don't spin on cleanup_lock if we are not interrupt.

If somebody else holds that lock, it will likely do the work for us.
If it won't, then we return here later and retry.

Under heavy load it allows to avoid lock congestion between interrupt and
polling threads.

MFC after: 1 week
Sponsored by: iXsystems, Inc.

Details

Provenance
mavAuthored on
Parents
rS356215: inetd: knock out some clang analyze warnings
Branches
Unknown
Tags
Unknown