HomeFreeBSD

Allow sleepq_signal() to drop the lock.

Description

Allow sleepq_signal() to drop the lock.

Introduce SLEEPQ_DROP sleepq_signal() flag, allowing one to drop the
sleep queue chain lock before returning. Reduced lock scope allows
significantly reduce lock contention inside taskqueue_enqueue() for
ZFS worker threads doing ~350K disk reads/s on 40-thread system.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

Details

Provenance
mavAuthored on Jun 25 2021, 5:52 PM
Parents
rG520a2401a65f: bsd-family-tree: Add 2.8BSD relationship to Research 7th edition
Branches
Unknown
Tags
Unknown