Page MenuHomeFreeBSD

sound: Retire PCM_LOCK in SNDCTL_DSP_GETCAPS
Needs ReviewPublic

Authored by christos on Fri, Oct 9, 10:11 AM.
Tags
None
Referenced Files
F175380882: D60514.id189181.diff
Sat, Oct 10, 10:39 AM
F175339339: D60514.diff
Sat, Oct 10, 2:56 AM
F175336204: D60514.id.diff
Sat, Oct 10, 2:14 AM
Unknown Object (File)
Fri, Oct 9, 3:54 PM
Unknown Object (File)
Fri, Oct 9, 12:27 PM
Unknown Object (File)
Fri, Oct 9, 12:26 PM
Unknown Object (File)
Fri, Oct 9, 12:07 PM
Unknown Object (File)
Fri, Oct 9, 11:37 AM
Subscribers

Details

Reviewers
markj
emaste
kib
Summary

The handler reads the device flags, for which there is no consistent
reader lock as of now. It also checks whether CHN_F_VIRTUAL is set. That
flag is set once in vchan_init() when the channel is created, and never
cleared. Neither read needs a lock.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77901
Build 74784: arc lint + arc unit