Opps use fetchadd_u64 not long to keep old 32 bit platforms

happy.
This commit is contained in:
Randall Stewart 2019-08-01 20:26:27 +00:00
parent bedf9eb987
commit a1589eb835
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350521

View File

@ -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);
/*