From: Avi Kivity <avi@redhat.com>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86-64, rwsem: Avoid store forwarding hazzard in __downgrade_write
Date: Sat, 13 Feb 2010 10:29:35 +0200 [thread overview]
Message-ID: <4B7662EF.9070302@redhat.com> (raw)
In-Reply-To: <4B765FFA.1020505@zytor.com>
On 02/13/2010 10:16 AM, H. Peter Anvin wrote:
> On 02/12/2010 11:13 PM, Avi Kivity wrote:
>
>> +#ifndef CONFIG_X86_64
>> + "i" (-RWSEM_WAITING_BIAS)
>> +#else
>> + "r" (-RWSEM_WAITING_BIAS)
>> #endif
>> + : "memory", "cc");
>>
> Using an "er" constraint here should work on both architectures.
>
>
Right. v2 to follow.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
prev parent reply other threads:[~2010-02-13 8:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-13 7:13 [PATCH] x86-64, rwsem: Avoid store forwarding hazzard in __downgrade_write Avi Kivity
2010-02-13 8:16 ` H. Peter Anvin
2010-02-13 8:29 ` Avi Kivity [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B7662EF.9070302@redhat.com \
--to=avi@redhat.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox