Re: [PATCH RESEND net-next 13/15] smc: receive data from RMBE

From
David Miller <davem@davemloft.net>
Date
2016-08-10 18:02:42
Also in
linux-s390
Reply to
Ursula Braun, 2016-08-10
From: Ursula Braun <redacted>
Date: Wed, 10 Aug 2016 15:44:00 +0200
But there are still usages (and conn->rx_curs_confirmed is one of
them), where I need an 8-byte cursor field to be read and written
atomicaly, even though I do not care whether the write operation has
been beaten or not. But I do care that reading the cursor does not
return a partially updated cursor. Isn't xchg() a possible solution
in this case?
Either the cpu supports 64-bit stores or it does not.

xchg() and atomicity have absolutely nothing to do with this.
Thread (29 messages) 29 messages, 3 authors, last reply 2016-09-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help