Page MenuHomeFreeBSD

Move some other SI_SUB_INIT_IF initializations to SI_SUB_TASKQ
ClosedPublic

Authored by cem on Aug 16 2017, 9:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 26, 6:21 PM
Unknown Object (File)
Sat, Jan 18, 5:48 PM
Unknown Object (File)
Sat, Jan 18, 5:26 PM
Unknown Object (File)
Jan 6 2025, 10:27 AM
Unknown Object (File)
Dec 12 2024, 7:24 PM
Unknown Object (File)
Dec 4 2024, 12:42 AM
Unknown Object (File)
Dec 3 2024, 3:01 AM
Unknown Object (File)
Nov 24 2024, 9:28 AM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/sys/gtaskqueue.h
95 ↗(On Diff #32147)

This one is a bit more complicated. Here you would remove the EARLY_AP_STARTUP #ifdef's and only use the second case (with separate SI_SUB_TASKQ and SI_SUB_SMP SYSINITs).

The LinuxKPI bits look good to me. Please address John Baldwins comments before committing.

This revision is now accepted and ready to land.Aug 17 2017, 6:08 AM
cem edited edge metadata.
cem marked an inline comment as done.

Remove EARLY_AP_STARTUP gtaskqueue code, as it does not work when run before
APs are started. Now gtaskqueue is SI_SUB_TASKQ, which precedes SI_SUB_SMP.

Boots fine on my laptop (whereas it did not boot fine before removing the
EARLY_AP_STARTUP code).

This revision now requires review to proceed.Aug 18 2017, 2:54 AM
sys/sys/gtaskqueue.h
93 ↗(On Diff #32192)

Follow-up question: is it ok that this is SI_ORDER_FIRST, while taskqueues themselves are only being initialized SI_SUB_SECOND? I guess I'm not sure what, if any, relationship gtaskqueue / taskqgroup have with ordinary taskqueues.

sys/sys/gtaskqueue.h
93 ↗(On Diff #32192)

It matches the previous behavior when all these SYSINITs were SI_SUB_NET_IF so it should be ok. (At some point the SYSINIT's recently changed to use SI_SUB_TASKQ should probably have their orders adjusted so taskqueues are created at SI_SUB_FIRST instead of SI_SUB_SECOND, and the linuxkpi ones can use SI_SUB_SECOND instead of SI_SUB_THIRD, but that isn't critical / urgent)

sys/sys/gtaskqueue.h
93 ↗(On Diff #32192)

That makes sense, thanks.

Can you mark the review approved, or do you have more feedback?

This revision is now accepted and ready to land.Aug 18 2017, 6:46 PM
This revision was automatically updated to reflect the committed changes.