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)
Mon, Jun 1, 2:36 AM
Unknown Object (File)
Sun, May 31, 3:45 AM
Unknown Object (File)
Sat, May 30, 8:10 PM
Unknown Object (File)
Tue, May 26, 1:17 PM
Unknown Object (File)
Tue, May 26, 10:23 AM
Unknown Object (File)
Mon, May 25, 3:08 AM
Unknown Object (File)
Mon, May 18, 11:05 PM
Unknown Object (File)
Mon, May 18, 6:35 PM
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