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
F135823074: D50030.id154349.diff
Thu, Nov 13, 5:44 AM
F135810530: D50030.id.diff
Thu, Nov 13, 2:46 AM
Unknown Object (File)
Wed, Nov 12, 10:15 PM
Unknown Object (File)
Wed, Nov 12, 6:35 PM
Unknown Object (File)
Wed, Nov 12, 5:07 PM
Unknown Object (File)
Thu, Oct 30, 12:32 AM
Unknown Object (File)
Wed, Oct 29, 1:42 AM
Unknown Object (File)
Sat, Oct 25, 7:12 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