Page MenuHomeFreeBSD

sound: Stop taking PCM_LOCK to create and destroy channels
Needs ReviewPublic

Authored by christos on Fri, Oct 9, 9:33 AM.
Tags
None
Referenced Files
F175296606: D60512.diff
Fri, Oct 9, 6:26 PM
F175296549: D60512.diff
Fri, Oct 9, 6:26 PM
F175280972: D60512.id189179.diff
Fri, Oct 9, 4:15 PM
F175277874: D60512.diff
Fri, Oct 9, 4:04 PM
F175275966: D60512.diff
Fri, Oct 9, 3:54 PM
F175265303: D60512.id189179.diff
Fri, Oct 9, 1:56 PM
F175251433: D60512.id189179.diff
Fri, Oct 9, 10:48 AM
F175245160: D60512.id189179.diff
Fri, Oct 9, 9:42 AM
Subscribers

Details

Reviewers
markj
emaste
kib
Summary

chn_init() and chn_kill() took PCM_LOCK around the channel lists and the
per-direction counts, so that readers which cannot sleep could inspect
them. There are none left anymore, so drop it. The few remaining
unlocked readers never took the mutex in the first place.

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 77899
Build 74782: arc lint + arc unit