mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Roland McGrath <roland@redhat.com>
Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] read_trylock for i386
Date: Wed, 13 Aug 2003 02:01:17 -0700	[thread overview]
Message-ID: <20030813020117.0acc5383.akpm@osdl.org> (raw)
In-Reply-To: <200308130614.h7D6EHv07972@magilla.sf.frob.com>

Roland McGrath <roland@redhat.com> wrote:
>
>  The following header patches add the read_trylock macro, implementing it
>  fully for i386 and leaving other architectures with an always-fail fallback.

Looks reasonable, and we do need read_trylock() for symmetry at least.  And
I did need it for the CONFIG_PREEMT low-latency read_lock() implementation.

Please note that the lockmeter patch in -mm kernels has implementations of
_raw_read_trylock() for sparc64, alpha and ia64.  ppc64 already implements
it.

So it would be better if someone could sweep all those together, implement
the necessary stubs for uniprocessor builds on all architectures and
apologetically break the build on the remaining SMP architectures.

That would appear to be mips, parisc, s390, sparc and x86_64.


  parent reply	other threads:[~2003-08-13  9:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-13  6:14 Roland McGrath
2003-08-13  6:22 ` Christoph Hellwig
2003-08-13  9:01 ` Andrew Morton [this message]
2003-08-13  9:37   ` Roland McGrath
2003-08-13 11:27   ` Maciej W. Rozycki

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=20030813020117.0acc5383.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@redhat.com \
    --cc=torvalds@osdl.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

all inboxes | Powered by JetHome®