Page MenuHomeFreeBSD

D29545.diff
No OneTemporary

D29545.diff

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

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)

Event Timeline