HomeFreeBSD

pipe: thundering herd problem in pipelock

Description

pipe: thundering herd problem in pipelock

All reads and writes are serialized with a hand-rolled lock, but unlocking it
always wakes up all waiters. Existing flag fields get resized to make room for
introduction of waiter counter without growing the struct.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D27273

Details

Provenance
mjgAuthored on
Reviewer
kib
Differential Revision
D27273: pipe: fix thundering herd problem in pipelock
Parents
rS367851: fstat(1): Add EXAMPLES section
Branches
Unknown
Tags
Unknown