svn commit: r350521 - head/sys/netinet
Randall Stewart
rrs at FreeBSD.org
Thu Aug 1 20:26:28 UTC 2019
Author: rrs
Date: Thu Aug 1 20:26:27 2019
New Revision: 350521
URL: https://svnweb.freebsd.org/changeset/base/350521
Log:
Opps use fetchadd_u64 not long to keep old 32 bit platforms
happy.
Modified:
head/sys/netinet/tcp_ratelimit.c
Modified: head/sys/netinet/tcp_ratelimit.c
==============================================================================
--- head/sys/netinet/tcp_ratelimit.c Thu Aug 1 19:45:34 2019 (r350520)
+++ head/sys/netinet/tcp_ratelimit.c Thu Aug 1 20:26:27 2019 (r350521)
@@ -1186,7 +1186,7 @@ tcp_rel_pacing_rate(const struct tcp_hwrate_limit_tabl
* in order to release our refcount.
*/
rs = __DECONST(struct tcp_rate_set *, crs);
- pre = atomic_fetchadd_long(&rs->rs_flows_using, -1);
+ pre = atomic_fetchadd_64(&rs->rs_flows_using, -1);
if (pre == 1) {
mtx_lock(&rs_mtx);
/*
More information about the svn-src-head
mailing list