diff options
author | kib <kib@FreeBSD.org> | 2015-07-28 06:58:10 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-07-28 06:58:10 +0000 |
commit | 2b8c79506d91b63c1438f6cc3cb525eba633e71b (patch) | |
tree | daf1f8a75a281ad078cb0bc75ba5b6dca61cdf65 /sys/rpc | |
parent | 4694db8d4ebc17fcb14bdc277af22fa078141beb (diff) | |
download | FreeBSD-src-2b8c79506d91b63c1438f6cc3cb525eba633e71b.zip FreeBSD-src-2b8c79506d91b63c1438f6cc3cb525eba633e71b.tar.gz |
Remove useless acquire semantic from the atomic_add operation before
sosend(). The only release on the xp_snt_cnt is done after sosend(),
with an intent to synchronize with load_acq in svc_vc_ack().
Reviewed by: alc
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Diffstat (limited to 'sys/rpc')
-rw-r--r-- | sys/rpc/svc_vc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/rpc/svc_vc.c b/sys/rpc/svc_vc.c index 1d3d041..6056345 100644 --- a/sys/rpc/svc_vc.c +++ b/sys/rpc/svc_vc.c @@ -860,7 +860,7 @@ svc_vc_reply(SVCXPRT *xprt, struct rpc_msg *msg, len = mrep->m_pkthdr.len; *mtod(mrep, uint32_t *) = htonl(0x80000000 | (len - sizeof(uint32_t))); - atomic_add_acq_32(&xprt->xp_snd_cnt, len); + atomic_add_32(&xprt->xp_snd_cnt, len); error = sosend(xprt->xp_socket, NULL, NULL, mrep, NULL, 0, curthread); if (!error) { |