Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3467833ybd; Fri, 28 Jun 2019 09:08:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDcLwZc+YHgeJXyQk993T3HZDanFRvUTNaRHM29zaS5ARg+B2v04rrKM6JGIdQPbyVqhqO X-Received: by 2002:a17:902:59c8:: with SMTP id d8mr12876394plj.55.1561738107395; Fri, 28 Jun 2019 09:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561738107; cv=none; d=google.com; s=arc-20160816; b=FfWfGWzmLGnOM1C57XFKLlm3/3VVPK7MdiAQXbweFZRONfHueJiMdwhzeJLRXFVJ7b d736jGHFSeIoVN+T2YW5x9b11+QYUV7FiOLx4KWPaVl126ObpXI0eXzCWKuxPhEjnPhF LtSieJTdT3c9qScyyZp1am1IT1vO6VTg03fcJ/4WhwwlwM/Ejvmos4QY3xDExjtiEuF1 k3OYYAmTJHQOUIWgoE1h2zHF1vnFrntb4hGlSFsS3lE33dJDKWjqNk8PMRGq6TRfrVH7 r+6PoWX1g3T4Tyrpcvlkr/F5ifCIkSAy2aNGDwKsbSjFD1/t3ZqemmNv5pUEyVGxmh92 QD1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wPqqFg7p91+r5i4m2+PhArhGPY41i3UB1iDCXb/Pbl4=; b=0tuRDDCzgEyQulxzQZqkm1gRvNNHlL5RB3QytNtiA+wNDXsIFMn6yqZrh7nhW8QWuc Cn6YP4H3XB2Fe3ybUP+5/UMPhKy271xA0bIbEg93zbDOYFs8w8IZh/KvqWvGwVuR8kHy Uz2S9E31p+EEwhqQMNGDytDQBzhFMp8U4iY/Gsf0+oSkG961BgxDRBhD/LrdNXTrLMwj Ooc44ILfZN4Vdbi1Uag+LBa5j9iCybv+rcVsC4XUW09DwwPxahfRSWvqRt173L6+NZeL t05QLO+5o4WWj2NT96qGo0pfCwQs5cyExVW0hFuwTA9pZ0iyAHI8u3WWdncSaOYojhcA wlYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=vNKzcnEp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si2647938pjs.107.2019.06.28.09.08.03; Fri, 28 Jun 2019 09:08:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=vNKzcnEp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726707AbfF1QHx (ORCPT + 99 others); Fri, 28 Jun 2019 12:07:53 -0400 Received: from merlin.infradead.org ([205.233.59.134]:44694 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726542AbfF1QHx (ORCPT ); Fri, 28 Jun 2019 12:07:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wPqqFg7p91+r5i4m2+PhArhGPY41i3UB1iDCXb/Pbl4=; b=vNKzcnEpqdst05Grn4tHAHiQJ itngFKqKaInore25YcKuG7VEMm/Oh6NN6oLtKr6+aQtHodvQd/nnsBIYUiB6nPoe6JCbuXzuwNTLC wS/VA6/a4bDbKtUJ3scWkyTo2q3UW1cp/ih0pgXBLHjZtEzCttbmOJ6y+2xmoZtpdG06HTyXzvGuY aCaR7bPk6jwR8EIdA9EhDqgMwkKjTclQbXOYQ4yBgw+8AbdUvMaOR3KElt6hRhw6KZZaGm5ZfjNmA ALvtyIxaSiS6Q82TZzfrnuQ5k6O1YQEw7BwDo537wHP+W4uAbUb4iU5Vdrzmy2SKpf9F3QoqFj4se hVS9ke5JQ==; Received: from [31.161.200.126] (helo=worktop.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hgtPb-0001gR-5n; Fri, 28 Jun 2019 16:07:43 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 2BE3E9802C5; Fri, 28 Jun 2019 18:07:40 +0200 (CEST) Date: Fri, 28 Jun 2019 18:07:40 +0200 From: Peter Zijlstra To: John Ogness Cc: linux-kernel@vger.kernel.org, Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , Sergey Senozhatsky Subject: Re: [RFC PATCH v2 1/2] printk-rb: add a new printk ringbuffer implementation Message-ID: <20190628160740.GC8451@worktop.programming.kicks-ass.net> References: <20190607162349.18199-1-john.ogness@linutronix.de> <20190607162349.18199-2-john.ogness@linutronix.de> <20190618114747.GQ3436@hirez.programming.kicks-ass.net> <87k1df28x4.fsf@linutronix.de> <20190626224034.GK2490@worktop.programming.kicks-ass.net> <87mui2ujh2.fsf@linutronix.de> <20190628154435.GZ7905@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190628154435.GZ7905@worktop.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 28, 2019 at 05:44:35PM +0200, Peter Zijlstra wrote: > On Fri, Jun 28, 2019 at 11:50:33AM +0200, John Ogness wrote: > > cmpxchg_release() vs WRITE_ONCE() is not safe?! Can you point me to > > documentation about this? > > Documentation/atomic_t.txt has this, see the SEMANTICS section on > atomic-set. Also see: arch/parisc/lib/bitops.c for one such case.