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)
Mon, Jul 7, 12:51 AM
Unknown Object (File)
Sun, Jul 6, 7:18 PM
Unknown Object (File)
Jul 2 2025, 3:59 PM
Unknown Object (File)
Jun 30 2025, 8:27 PM
Unknown Object (File)
Jun 18 2025, 9:18 PM
Unknown Object (File)
Jun 13 2025, 1:47 PM
Unknown Object (File)
Apr 26 2025, 12:11 PM
Unknown Object (File)
Apr 21 2025, 10:46 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.