Page MenuHomeFreeBSD

sound: Retire pcm_channel->sleeping
AcceptedPublic

Authored by christos on Tue, Sep 29, 12:26 PM.
Tags
None
Referenced Files
F176648426: D60121.diff
Tue, Oct 20, 1:32 PM
F176559915: D60121.id.diff
Mon, Oct 19, 8:33 PM
Unknown Object (File)
Mon, Oct 19, 9:57 AM
Unknown Object (File)
Fri, Oct 16, 1:27 AM
Unknown Object (File)
Thu, Oct 15, 1:35 AM
Unknown Object (File)
Tue, Oct 13, 1:14 AM
Unknown Object (File)
Tue, Oct 13, 1:03 AM
Unknown Object (File)
Mon, Oct 12, 7:34 PM
Subscribers

Details

Reviewers
markj
emaste
kib
Summary

This field and the pause_sbt() in pcm_shutdownchans() are redundant now,
because pcm_shutdownchans() (previously part of pcm_killchans()) is now
only responsible for waking up and stopping the channel, and
destroy_dev() will not return until the threads have returned from their
cdev methods.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Diff Detail

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

Event Timeline

markj added inline comments.
sys/dev/sound/pcm/sound.c
159

Seems ok, but the comments from the previous revision still apply, i.e., the list traversal is unlocked, and I suspect we should not skip idle channels like this.

This revision is now accepted and ready to land.Tue, Oct 20, 1:34 PM