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, Mar 17, 8:07 AM
Unknown Object (File)
Mon, Mar 17, 7:31 AM
Unknown Object (File)
Wed, Mar 12, 7:15 PM
Unknown Object (File)
Fri, Mar 7, 4:04 PM
Unknown Object (File)
Feb 19 2025, 12:50 AM
Unknown Object (File)
Feb 16 2025, 4:52 PM
Unknown Object (File)
Feb 10 2025, 7:26 AM
Unknown Object (File)
Feb 9 2025, 12:14 PM
Subscribers

Details

Diff Detail

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

Event Timeline

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

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
64

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

christos added inline comments.
sys/dev/sound/pcm/feeder.c
64
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.