Page MenuHomeFreeBSD

e6000sw: stop / drain the taskqueue (and tick) during detach
ClosedPublic

Authored by adrian on Apr 25 2025, 6:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 2, 8:12 PM
Unknown Object (File)
Sep 9 2025, 9:16 AM
Unknown Object (File)
Sep 2 2025, 1:31 AM
Unknown Object (File)
Aug 29 2025, 7:12 PM
Unknown Object (File)
Aug 26 2025, 12:12 PM
Unknown Object (File)
Aug 25 2025, 12:05 AM
Unknown Object (File)
Aug 18 2025, 5:19 AM
Unknown Object (File)
Aug 15 2025, 12:48 AM
Subscribers

Details

Summary

Although the tick isn't running every hz right now, when it /is/
running at hz, the shutdown path will race with an existing running
tick routine, causing unpredictable panics.

  • Introduce a shutdown flag which will abort doing the tick work if set
  • set the shutdown flag and start cancel/draining the taskqueue during detach.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable