Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148354833
D5733.id15032.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
741 B
Referenced Files
None
Subscribers
None
D5733.id15032.diff
View Options
Index: head/sys/netinet/tcp_syncache.c
===================================================================
--- head/sys/netinet/tcp_syncache.c
+++ head/sys/netinet/tcp_syncache.c
@@ -281,6 +281,12 @@
struct syncache *sc, *nsc;
int i;
+ /*
+ * Stop the re-seed timer before freeing resources. No need to
+ * possibly schedule it another time.
+ */
+ callout_drain(&V_tcp_syncache.secret.reseed);
+
/* Cleanup hash buckets: stop timers, free entries, destroy locks. */
for (i = 0; i < V_tcp_syncache.hashsize; i++) {
@@ -304,8 +310,6 @@
/* Free the allocated global resources. */
uma_zdestroy(V_tcp_syncache.zone);
free(V_tcp_syncache.hashbase, M_SYNCACHE);
-
- callout_drain(&V_tcp_syncache.secret.reseed);
}
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 18, 8:08 AM (13 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29892917
Default Alt Text
D5733.id15032.diff (741 B)
Attached To
Mode
D5733: VNET: stop timer before freeing resources
Attached
Detach File
Event Timeline
Log In to Comment