Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167910768
D30946.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
458 B
Referenced Files
None
Subscribers
None
D30946.id.diff
View Options
diff --git a/sys/netpfil/pf/pf_ioctl.c b/sys/netpfil/pf/pf_ioctl.c
--- a/sys/netpfil/pf/pf_ioctl.c
+++ b/sys/netpfil/pf/pf_ioctl.c
@@ -5054,6 +5054,10 @@
for (int i = 0; i < pf_hashmask; i++) {
struct pf_idhash *ih = &V_pf_idhash[i];
+ /* Avoid taking the lock if there are no states in the row. */
+ if (LIST_EMPTY(&ih->states))
+ continue;
+
PF_HASHROW_LOCK(ih);
LIST_FOREACH(s, &ih->states, entry) {
if (s->timeout == PFTM_UNLINKED)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 26, 9:40 AM (16 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37262732
Default Alt Text
D30946.id.diff (458 B)
Attached To
Mode
D30946: pf: getstates: avoid taking the hashrow lock if the row is empty
Attached
Detach File
Event Timeline
Log In to Comment