Page MenuHomeFreeBSD

sound: Protect channels.pcm.opened with the sx alone
Needs ReviewPublic

Authored by christos on Fri, Oct 9, 9:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 17, 1:05 AM
Unknown Object (File)
Sat, Oct 17, 12:21 AM
Unknown Object (File)
Fri, Oct 16, 6:39 AM
Unknown Object (File)
Fri, Oct 16, 5:39 AM
Unknown Object (File)
Fri, Oct 16, 1:57 AM
Unknown Object (File)
Wed, Oct 14, 4:31 PM
Unknown Object (File)
Wed, Oct 14, 3:53 PM
Unknown Object (File)
Wed, Oct 14, 9:07 AM
Subscribers

Details

Reviewers
markj
emaste
kib
Summary

This list is initialized in pcm_init() and only accessed by dsp_open()
and dsp_close(), and we are under sx already, so the PCM_LOCK does not
add anything.

PCM_LOCK is also held around playcount/reccount reads, which are also
under sx now.

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 77900
Build 74783: arc lint + arc unit