Page MenuHomeFreeBSD

lltable: use own lock
ClosedPublic

Authored by glebius on Dec 5 2025, 4:53 PM.
Tags
None
Referenced Files
F154338754: D54086.id167726.diff
Mon, Apr 27, 11:02 PM
Unknown Object (File)
Fri, Apr 17, 10:49 AM
Unknown Object (File)
Mon, Apr 13, 3:45 PM
Unknown Object (File)
Wed, Apr 8, 4:22 AM
Unknown Object (File)
Tue, Apr 7, 6:23 PM
Unknown Object (File)
Sat, Apr 4, 10:07 PM
Unknown Object (File)
Sun, Mar 29, 12:44 PM
Unknown Object (File)
Mar 25 2026, 11:14 AM

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.