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)
Sat, Jul 11, 1:37 AM
Unknown Object (File)
Wed, Jul 8, 5:29 PM
Unknown Object (File)
Mon, Jul 6, 4:26 PM
Unknown Object (File)
Mon, Jul 6, 2:03 PM
Unknown Object (File)
Sun, Jul 5, 10:58 PM
Unknown Object (File)
Sat, Jul 4, 10:45 AM
Unknown Object (File)
Fri, Jul 3, 10:35 AM
Unknown Object (File)
Thu, Jul 2, 10:47 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