Re: [PATCH 10/11] x86, rwsem: provide __down_write_killable

From
H. Peter Anvin <hpa@zytor.com>
Date
2016-04-20 21:09:14
Also in
linux-alpha, linux-s390, linux-sh, lkml, sparclinux
Reply to
Borislav Petkov, 2016-04-20
On 04/20/2016 01:45 PM, Borislav Petkov wrote:
On Wed, Apr 20, 2016 at 11:04:05AM -0700, H. Peter Anvin wrote:
quoted
The reason it breaks is because the same register can't be an
input-output register and a separate input. However, the input side of
the input-output is probably undefined, and so gcc may not notice.
So Michal and I talked about this a while ago. Why do we need the '"a"
(sem)' input dependency if '"+a" (ret)' already supplies the same thing?
Setting ret to sem doesn't make any sense.  Just use "=a" and "a".

	-hpa

Thread (36 messages) 36 messages, 6 authors, last reply 2016-04-27
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