All of lore.kernel.org
 help / color / mirror / Atom feed
From: Henrik Rydberg <rydberg@bitmath.org>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>,
	Oleg Nesterov <oleg@redhat.com>, Jiri Kosina <jkosina@suse.cz>,
	Jonathan Cameron <jic23@cam.ac.uk>
Subject: Re: [PATCH] Introduce buflock, a one-to-many circular buffer mechanism (rev2)
Date: Sun, 20 Jun 2010 22:13:11 +0200	[thread overview]
Message-ID: <4C1E7657.9070606@bitmath.org> (raw)
In-Reply-To: <1277060705-3363-1-git-send-email-rydberg@euromail.se>

...

diff --git a/include/linux/buflock.h b/include/linux/buflock.h
index 3d5df22..05996d5 100644
--- a/include/linux/buflock.h
+++ b/include/linux/buflock.h
@@ -125,8 +125,8 @@ static inline unsigned int bufwrite_at(const struct buflock_
writer *bw)
  */
 static inline void bufwrite_unlock(struct buflock_writer *bw)
 {
-	++bw->head;
 	smp_wmb();
+	++bw->head;
 }


  reply	other threads:[~2010-06-20 20:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-20 19:05 [PATCH] Introduce buflock, a one-to-many circular buffer mechanism (rev2) Henrik Rydberg
2010-06-20 20:13 ` Henrik Rydberg [this message]
2010-06-21 23:16 ` Andrew Morton
2010-06-22 13:54   ` Henrik Rydberg

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=4C1E7657.9070606@bitmath.org \
    --to=rydberg@bitmath.org \
    --cc=akpm@linux-foundation.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=jic23@cam.ac.uk \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oleg@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.