From: Grant Grundler <iod00d@hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: Add full memory fence for test_and_*_bit operation
Date: Wed, 29 Mar 2006 01:44:40 +0000 [thread overview]
Message-ID: <20060329014440.GE26920@esmail.cup.hp.com> (raw)
In-Reply-To: <200603290048.k2T0mmg32601@unix-os.sc.intel.com>
On Tue, Mar 28, 2006 at 04:49:24PM -0800, Chen, Kenneth W wrote:
> OK, semi-big-hammer to enforce full memory fence on ia64 for
> test_and_set_bit
> test_and_clear_bit
> test_and_change_bit
>
> It's sad we don't have something like:
>
> test_and_set_bit_used_like_a_lock
...
Normally the arch specific (e.g. __set_bit or __raw_readl) provide
different semantics than the "portable" versions (e.g set_bit and readl).
Can folks who know what they are doing can use arch specific versions
at the expense of portability?
I expect the driver to compile and work correctly on all arches,
it will just be a bit more of a PITA to maintain.
grant
prev parent reply other threads:[~2006-03-29 1:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-29 0:49 Add full memory fence for test_and_*_bit operation Chen, Kenneth W
2006-03-29 1:44 ` Grant Grundler [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=20060329014440.GE26920@esmail.cup.hp.com \
--to=iod00d@hp.com \
--cc=linux-ia64@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