mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 15:40:44 +00:00
Decrement the global syncache counter in syncache_expand() when the entry
is removed from the bucket. This fixes the syncache statistics.
This commit is contained in:
parent
9fe6d25444
commit
a846263567
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159922
|
@ -772,6 +772,7 @@ syncache_expand(struct in_conninfo *inc, struct tcphdr *th,
|
|||
/* Pull out the entry to unlock the bucket row. */
|
||||
TAILQ_REMOVE(&sch->sch_bucket, sc, sc_hash);
|
||||
sch->sch_length--;
|
||||
tcp_syncache.cache_count--;
|
||||
SCH_UNLOCK(sch);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue