Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115880376
D29545.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
718 B
Referenced Files
None
Subscribers
None
D29545.diff
View Options
diff --git a/sys/netinet/tcp_hostcache.c b/sys/netinet/tcp_hostcache.c
--- a/sys/netinet/tcp_hostcache.c
+++ b/sys/netinet/tcp_hostcache.c
@@ -644,7 +644,6 @@
const int linesize = 128;
struct sbuf sb;
int i, error, len;
- bool do_drain = false;
struct hc_metrics *hc_entry;
char ip4buf[INET_ADDRSTRLEN];
#ifdef INET6
@@ -702,15 +701,9 @@
hc_entry->rmx_hits,
hc_entry->rmx_updates,
hc_entry->rmx_expire);
- do_drain = true;
}
THC_UNLOCK(&V_tcp_hostcache.hashbase[i].hch_mtx);
- /* Need to track if sbuf has data, to avoid
- * a KASSERT when calling sbuf_drain.
- */
- if (do_drain) {
- sbuf_drain(&sb);
- do_drain = false;
+ sbuf_drain(&sb);
}
}
#undef msec
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 30, 10:45 PM (17 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17866721
Default Alt Text
D29545.diff (718 B)
Attached To
Mode
D29545: Use sbuf_drain unconditionally
Attached
Detach File
Event Timeline
Log In to Comment