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)
Jan 12 2024, 10:03 AM
Unknown Object (File)
Dec 20 2023, 7:27 AM
Unknown Object (File)
Dec 5 2023, 8:23 PM
Unknown Object (File)
Nov 27 2023, 10:57 PM
Unknown Object (File)
Nov 12 2023, 6:46 PM
Unknown Object (File)
Nov 11 2023, 12:48 PM
Unknown Object (File)
Nov 10 2023, 7:54 PM
Unknown Object (File)
Oct 18 2023, 12:53 PM
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.