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
F173434289: D50030.id154349.diff
Fri, Sep 25, 10:11 PM
F173431424: D50030.id154299.diff
Fri, Sep 25, 9:50 PM
F173407268: D50030.diff
Fri, Sep 25, 6:35 PM
Unknown Object (File)
Sun, Sep 20, 4:17 AM
Unknown Object (File)
Sun, Sep 20, 3:05 AM
Unknown Object (File)
Aug 23 2026, 7:12 PM
Unknown Object (File)
Aug 18 2026, 7:46 PM
Unknown Object (File)
Aug 15 2026, 1:29 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