Page MenuHomeFreeBSD

lltable: use own lock
ClosedPublic

Authored by glebius on Dec 5 2025, 4:53 PM.
Tags
None
Referenced Files
F159783186: D54086.diff
Thu, Jun 18, 5:17 AM
Unknown Object (File)
Sat, Jun 13, 2:13 PM
Unknown Object (File)
Thu, Jun 4, 8:15 PM
Unknown Object (File)
Thu, May 28, 10:06 PM
Unknown Object (File)
Mon, May 25, 5:42 PM
Unknown Object (File)
Sun, May 24, 12:28 AM
Unknown Object (File)
May 15 2026, 4:33 AM
Unknown Object (File)
May 14 2026, 4:06 PM

Details

Summary

Add struct mtx to struct lltable and stop using IF_AFDATA_LOCK, that
was created for a completely different purpose. No functional change
intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

melifaro added inline comments.
sys/netinet6/nd6.c
1559

Probably worth having WLOCK here (which should be in the old code as well).
We may start running nd6_free() for different LLes from multiple threads, resulting in lltable_unlink_entry() running under read lock

This revision is now accepted and ready to land.Dec 7 2025, 9:58 PM
zlei added a subscriber: zlei.

Looks good to me.

This revision was automatically updated to reflect the committed changes.