linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@digeo.com>
To: Stephen Hemminger <shemminger@osdl.org>
Cc: Andrea Arcangeli <andrea@suse.de>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>, Andi Kleen <ak@suse.de>,
	linux-mm@kvack.org
Subject: Re: New version of frlock (now called seqlock)
Date: Thu, 30 Jan 2003 15:44:38 -0800	[thread overview]
Message-ID: <3E39B8E6.5F668D28@digeo.com> (raw)
In-Reply-To: <1043969416.10155.619.camel@dell_ss3.pdx.osdl.net>

Stephen Hemminger wrote:
> 
> This is an update to the earlier frlock.
> 

Sorry, but I have lost track of what version is what.  Please
let me get my current act together and then prepare diffs
against (or new versions of) that.

You appear to have not noticed my earlier suggestions wrt
coding tweaks and inefficiencies in the new implementation.

- SEQ_INIT and seq_init can go away.

- do seq_write_begin/end need wmb(), or mb()?  Probably, we
  should just remove these functions altogether.

-
	+static inline int seq_read_end(const seqcounter_t *s, unsigned iv)
	+{
	+       mb();
	+       return (s->counter != iv) || (iv & 1);
	+}

  So the barriers changed _again_!  Could we please at least
  get Richard Henderson and Andrea to agree that this is the
  right way to do it?

-
	+typedef struct {
	+       volatile unsigned counter;
	+} seqcounter_t;

  Why did this become a struct?

  Why is it volatile?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

  reply	other threads:[~2003-01-30 23:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-30 23:30 Stephen Hemminger
2003-01-30 23:44 ` Andrew Morton [this message]
2003-01-30 23:50   ` Andrea Arcangeli
2003-01-31  0:15     ` Stephen Hemminger
2003-01-30 23:51 ` Andi Kleen
2003-01-31  0:33   ` Stephen Hemminger

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=3E39B8E6.5F668D28@digeo.com \
    --to=akpm@digeo.com \
    --cc=ak@suse.de \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=andrea@suse.de \
    --cc=linux-mm@kvack.org \
    --cc=shemminger@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