From: catalin.marinas@arm.com (Catalin Marinas)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: Add PI/robust mutexes support for SMP kernels
Date: Tue, 08 Jun 2010 11:14:37 +0100 [thread overview]
Message-ID: <1275992077.2127.13.camel@e102109-lin.cambridge.arm.com> (raw)
In-Reply-To: <20100607213517.GA25479@oksana.dev.rtsoft.ru>
On Mon, 2010-06-07 at 22:35 +0100, Anton Vorontsov wrote:
> On Mon, Jun 07, 2010 at 04:40:01PM -0400, Nicolas Pitre wrote:
> > On Tue, 8 Jun 2010, Anton Vorontsov wrote:
> >
> > > So, can we solve this by
> > >
> > > ldrex
> > > ...
> > > strt newval
> > > ^ may cause exception, but doesn't clear the tag, so we're still atomic
> > > strex <- clears the tag
> >
> > No, you're not atomic anymore, as some other ldrex/strex might have come
> > through by the time the strt is executed, and while this strex wouldn't
> > be executed as the tag would be cleared at that point, the strt has no
> > such concerns with atomic tags and would indeed corrupt whatever new
> > value has been stored in the mean time.
>
> Ugh, surely right you are, thanks!
>
> It seems Catalin's "Remove the domain switching" patch comes handy
> here.
As I said, not all the domains patch is needed for your specific case,
just the parts dealing with page permissions.
--
Catalin
next prev parent reply other threads:[~2010-06-08 10:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-07 17:36 [PATCH] ARM: Add PI/robust mutexes support for SMP kernels Anton Vorontsov
2010-06-07 19:44 ` Russell King - ARM Linux
2010-06-07 20:27 ` Anton Vorontsov
2010-06-07 20:40 ` Nicolas Pitre
2010-06-07 21:35 ` Anton Vorontsov
2010-06-08 10:14 ` Catalin Marinas [this message]
2010-06-07 21:05 ` Catalin Marinas
2010-06-07 21:52 ` Russell King - ARM Linux
2010-06-08 10:04 ` Catalin Marinas
2010-06-08 10:26 ` Russell King - ARM Linux
2010-06-08 10:42 ` Catalin Marinas
2010-06-07 20:56 ` Catalin Marinas
2010-06-07 21:31 ` Anton Vorontsov
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=1275992077.2127.13.camel@e102109-lin.cambridge.arm.com \
--to=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).