From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754027AbbKCOPb (ORCPT ); Tue, 3 Nov 2015 09:15:31 -0500 Received: from www.linutronix.de ([62.245.132.108]:44383 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbbKCOPa (ORCPT ); Tue, 3 Nov 2015 09:15:30 -0500 Subject: Re: [PATCH] ipc/msg: Implement lockless pipelined wakeups To: Davidlohr Bueso , George Spelvin References: <20151031130214.10598.qmail@ns.horizon.com> <20151031185457.GC7947@linux-uzut.site> <20151031190633.GA1707@linux-uzut.site> Cc: tglx@linutronix.de, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, manfred@colorfullife.com, peterz@infradead.org From: Sebastian Andrzej Siewior Message-ID: <5638C180.6050901@linutronix.de> Date: Tue, 3 Nov 2015 15:15:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.2.0 MIME-Version: 1.0 In-Reply-To: <20151031190633.GA1707@linux-uzut.site> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/31/2015 08:06 PM, Davidlohr Bueso wrote: > On Sat, 31 Oct 2015, Bueso wrote: > >> Yes, and this confirms that we still rely on the implicit barrier >> from the cmpxchg as tglx mentioned. As such, we also need to keep >> the pairing when reading 'r_msg' in do_msgrcv(), instead of dropping >> the comments. > > Hmm having r_msg as volatile seems even less needed now, we should > drop it. I imagine it was there initially for the busy-wait on the variable > becoming non-nil, but we had cpu_relax _anyway_, so ... Didn't noticed that. So that volatile part and the casts are gone, too. Sebastian