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)
Fri, May 15, 11:18 AM
Unknown Object (File)
Sat, May 9, 6:49 PM
Unknown Object (File)
Wed, May 6, 7:10 PM
Unknown Object (File)
Sat, May 2, 10:22 AM
Unknown Object (File)
Sun, Apr 19, 9:17 AM
Unknown Object (File)
Sun, Apr 19, 3:10 AM
Unknown Object (File)
Sat, Apr 18, 8:14 PM
Unknown Object (File)
Fri, Apr 17, 3:25 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