Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030478AbbKDRc2 (ORCPT ); Wed, 4 Nov 2015 12:32:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:42646 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755171AbbKDRc0 (ORCPT ); Wed, 4 Nov 2015 12:32:26 -0500 Date: Wed, 4 Nov 2015 09:32:17 -0800 From: Davidlohr Bueso To: Peter Zijlstra Cc: Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org, George Spelvin , Thomas Gleixner , Manfred Spraul , Andrew Morton Subject: Re: [PATCH v2] ipc/msg: Implement lockless pipelined wakeups Message-ID: <20151104173217.GA15994@linux-uzut.site> References: <1446563009-9076-1-git-send-email-bigeasy@linutronix.de> <20151104115538.GK17308@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20151104115538.GK17308@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 823 Lines: 23 On Wed, 04 Nov 2015, Peter Zijlstra wrote: >On Tue, Nov 03, 2015 at 04:03:29PM +0100, Sebastian Andrzej Siewior wrote: > >> - struct msg_msg *volatile r_msg; >> + struct msg_msg *r_msg; > >> + wake_q_add(wake_q, msr->r_tsk); >> msr->r_msg = msg; >> + /* >> + * Rely on the implicit cmpxchg barrier from >> + * wake_q_add such that we can ensure that > >Davidlohr, didn't you want to make that cmpxchg_relaxed() or >cmpxchg_release() ? Right, I had forgotten about that. iirc we ended up deciding to fully relax the cmpxchg and update the callers instead. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/