Page MenuHomeFreeBSD

if_detach_internal: defer reading of vnet_shutdown until needed
AbandonedPublic

Authored by kevans on Dec 12 2019, 4:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 26, 12:01 AM
Unknown Object (File)
Feb 13 2024, 6:29 PM
Unknown Object (File)
Dec 26 2023, 4:14 PM
Unknown Object (File)
Dec 22 2023, 10:34 PM
Unknown Object (File)
Dec 11 2023, 12:02 AM
Unknown Object (File)
Sep 24 2023, 12:05 AM
Unknown Object (File)
Sep 10 2023, 1:57 AM
Unknown Object (File)
Sep 7 2023, 9:51 PM
Subscribers

Details

Reviewers
bz
thj
kp
Summary

A lot can happen between the detach starting and when we actually need to know if the vnet's shutting down, including lots of sleeping. Given that only the one spot needs to actually check if we're shutting down, get rid of the local.

While here, fix the ordering of vnet_sysuninit_shutdown so that it happens earlier in the shutdown process. Right now, it's at SI_SUB_VNET_DONE+SI_ORDER_FIRST which happens after vnet_if_return @ SI_SUB_VNET_DONE+SI_ORDER_ANY in SYSUNINIT-land, where the ordering is reversed. Put vnet_sysuninit_shutdown at SI_ORDER_ANY and drop ifnet return to SI_ORDER_MIDDLE.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 28105