Opps use fetchadd_u64 not long to keep old 32 bit platforms
happy.
This commit is contained in:
parent
bedf9eb987
commit
a1589eb835
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350521
@ -1186,7 +1186,7 @@ tcp_rel_pacing_rate(const struct tcp_hwrate_limit_table *crte, struct tcpcb *tp)
|
||||
* 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);
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user