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.

(cherry picked from commit 6df35af4d85c6311d8e762521580e7176b69394e)

Details

Provenance
mavAuthored on Jun 25 2021, 5:52 PM
Parents
rGf00dd44f0a24: devmatch: improve naming of devmatch config variable
Branches
Unknown
Tags
Unknown