<p dir="ltr">Hi Peter,</p>
<p dir="ltr">Please forgive me for the format of my reply. I'm travelling,<br>
and replying from my phone.</p>
<p dir="ltr">2015年10月1日 下午7:28,"Peter Zijlstra" <<a href="mailto:peterz@infradead.org">peterz@infradead.org</a>>写道:<br>
><br>
> On Wed, Sep 16, 2015 at 11:49:34PM +0800, Boqun Feng wrote:<br>
> > According to memory-barriers.txt, xchg and its atomic{,64}_ versions<br>
> > need to imply a full barrier, however they are now just RELEASE+ACQUIRE,<br>
> > which is not a full barrier.<br>
> ><br>
> > So remove the definition of xchg(), and let __atomic_op_fence() build<br>
> > the full-barrier versions of these operations.<br>
><br>
> Do you want to do a patch for -stable fixing the current implementation?</p>
<p dir="ltr">Good idea! I didn't think of this before, and I'd love to do the patch,<br>
but thing is that I'm not able to use my laptop until Oct 10th.<br>
I will send the patch once I'm back.<br>
Does that work for you?</p>
<p dir="ltr">Regards,<br>
Boqun</p>