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, Oct 12, 3:35 AM
Unknown Object (File)
Sun, Oct 11, 1:29 PM
Unknown Object (File)
Sun, Oct 11, 7:40 AM
Unknown Object (File)
Sun, Oct 11, 7:31 AM
Unknown Object (File)
Sun, Oct 11, 5:31 AM
Unknown Object (File)
Sun, Oct 11, 1:06 AM
Unknown Object (File)
Fri, Oct 9, 4:31 PM
Unknown Object (File)
Fri, Oct 9, 4:01 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 63735
Build 60619: arc lint + arc unit