From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753099AbcKPNmM (ORCPT ); Wed, 16 Nov 2016 08:42:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35974 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752300AbcKPNmH (ORCPT ); Wed, 16 Nov 2016 08:42:07 -0500 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <1479294769-12723-1-git-send-email-mark.rutland@arm.com> References: <1479294769-12723-1-git-send-email-mark.rutland@arm.com> To: Mark Rutland Cc: dhowells@redhat.com, linux-kernel@vger.kernel.org, Jonathan Corbet , "Paul E. McKenney" , linux-doc@vger.kernel.org Subject: Re: [PATCH] Documentation: circular-buffers: use READ_ONCE() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1942.1479303724.1@warthog.procyon.org.uk> Date: Wed, 16 Nov 2016 13:42:04 +0000 Message-ID: <1943.1479303724@warthog.procyon.org.uk> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 16 Nov 2016 13:42:07 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mark Rutland wrote: > While the {READ,WRITE}_ONCE() macros should be used in preference to > ACCESS_ONCE(), the circular buffer documentation uses the latter > exclusively. > > To point people in the right direction, and as a step towards the > eventual removal of ACCESS_ONCE(), update the documentation to use > READ_ONCE(), as ACCESS_ONCE() is only used in a reader context in the > circular buffer documentation. > > Signed-off-by: Mark Rutland > Cc: Jonathan Corbet > Cc: Paul E. McKenney > Cc: linux-doc@vger.kernel.org > Cc: linux-kernel@vger.kernel.org Acked-by: David Howells