Page MenuHomeFreeBSD

dummynet: Fix schedlist and aqmlist locking
ClosedPublic

Authored by kp on May 21 2021, 3:14 PM.
Tags
None
Referenced Files
F170625441: D30381.id89598.diff
Sat, Sep 5, 5:04 PM
F170625380: D30381.id89598.diff
Sat, Sep 5, 5:03 PM
F170580249: D30381.id90362.diff
Sat, Sep 5, 12:16 PM
Unknown Object (File)
Fri, Sep 4, 11:11 PM
Unknown Object (File)
Thu, Sep 3, 5:33 PM
Unknown Object (File)
Tue, Sep 1, 10:47 PM
Unknown Object (File)
Tue, Sep 1, 4:42 PM
Unknown Object (File)
Sun, Aug 30, 5:27 PM

Details

Summary

These are global (i.e. shared across vnets) structures, so we need
global lock to protect them. However, we look up entries in these lists
(find_aqm_type(), find_sched_type()) and return them. We must ensure
that the returned structures cannot go away while we are using them.

Resolve this by using NET_EPOCH(). The structures can be safely accessed
under it, and we postpone their cleanup until we're sure they're no
longer used.

MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39337
Build 36226: arc lint + arc unit

Event Timeline

kp requested review of this revision.May 21 2021, 3:14 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jun 3 2021, 3:20 PM
This revision was automatically updated to reflect the committed changes.