HomeFreeBSD

devfs: introduce a per-dev lock to protect ->si_devsw

Description

devfs: introduce a per-dev lock to protect ->si_devsw

This allows bumping threadcount without taking the global devmtx lock.

In particular this eliminates contention on said lock while using bhyve
with multiple vms.

Reviewed by: kib
Tested by: markj
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D22548

Details

Provenance
mjgAuthored on
Reviewer
kib
Differential Revision
D22548: devfs: introduce a per-dev lock to protect ->si_devsw
Parents
rS355227: tmpfs: add fast path to tmpfs_access for common case lookup
Branches
Unknown
Tags
Unknown