Page MenuHomeFreeBSD

sound: Move root feeder initialization to separate function
ClosedPublic

Authored by christos on Sep 27 2024, 5:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 7:09 PM
Unknown Object (File)
Fri, Nov 1, 3:51 AM
Unknown Object (File)
Fri, Nov 1, 1:50 AM
Unknown Object (File)
Mon, Oct 28, 8:51 PM
Unknown Object (File)
Thu, Oct 24, 7:10 PM
Unknown Object (File)
Oct 19 2024, 9:15 PM
Unknown Object (File)
Oct 18 2024, 11:08 AM
Unknown Object (File)
Oct 5 2024, 12:03 AM
Subscribers

Details

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

zlei added a subscriber: zlei.
zlei added inline comments.
sys/dev/sound/pcm/feeder.c
65

The SYSINIT is the slow path. I've not tested yet but I bet M_WAITOK will be OK. So that we can guarantee that the root feeder is always available.

This revision is now accepted and ready to land.Sep 29 2024, 3:15 AM
sys/dev/sound/pcm/feeder.c
65

I think we could change to M_WAITOK in feeder_register() as well.

christos added inline comments.
sys/dev/sound/pcm/feeder.c
65
sys/dev/sound/pcm/feeder.c
63

A nit here, you can assert, aka MPASS(feedercnt == 0), to ensure in future the change of order of SYSINIT will not break. The current change is absolutely OK, but just in case.

christos added inline comments.
sys/dev/sound/pcm/feeder.c
63

Good idea. Will commit the patch with the MPASS as well, but will the review here as-is here since it's accepted.

When making a non-functional change like this, it's nice to state why in the commit message.

This revision was automatically updated to reflect the committed changes.
christos marked an inline comment as done.