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
F175716428: D60513.id.diff
Mon, Oct 12, 6:05 PM
Unknown Object (File)
Mon, Oct 12, 12:49 PM
Unknown Object (File)
Mon, Oct 12, 11:53 AM
Unknown Object (File)
Mon, Oct 12, 10:51 AM
Unknown Object (File)
Mon, Oct 12, 8:33 AM
Unknown Object (File)
Sun, Oct 11, 1:30 PM
Unknown Object (File)
Sun, Oct 11, 7:15 AM
Unknown Object (File)
Sat, Oct 10, 10:29 PM
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