From patchwork Sun Jun 20 20:13:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Rydberg X-Patchwork-Id: 107073 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5KKDFNt009987 for ; Sun, 20 Jun 2010 20:13:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757025Ab0FTUNO (ORCPT ); Sun, 20 Jun 2010 16:13:14 -0400 Received: from csmtp2.one.com ([91.198.169.22]:43408 "EHLO csmtp2.one.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757004Ab0FTUNO (ORCPT ); Sun, 20 Jun 2010 16:13:14 -0400 Received: from [192.168.0.183] (c83-248-196-134.bredband.comhem.se [83.248.196.134]) by csmtp2.one.com (Postfix) with ESMTP id 0F5F61B003600; Sun, 20 Jun 2010 20:13:12 +0000 (UTC) Message-ID: <4C1E7657.9070606@bitmath.org> Date: Sun, 20 Jun 2010 22:13:11 +0200 From: Henrik Rydberg User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: Dmitry Torokhov CC: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , Oleg Nesterov , Jiri Kosina , Jonathan Cameron Subject: Re: [PATCH] Introduce buflock, a one-to-many circular buffer mechanism (rev2) References: <1277060705-3363-1-git-send-email-rydberg@euromail.se> In-Reply-To: <1277060705-3363-1-git-send-email-rydberg@euromail.se> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 20 Jun 2010 20:13:15 +0000 (UTC) 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; }