Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: [PATCH] bluetooth/{bnep,cmtp,hidp}: Remove unnecessary smp_mb__{before,after}_atomic From: Marcel Holtmann In-Reply-To: <1534272066-9366-1-git-send-email-andrea.parri@amarulasolutions.com> Date: Tue, 21 Aug 2018 16:55:47 +0200 Cc: Johan Hedberg , "David S. Miller" , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jeffy Chen , Brian Norris , AL Yu-Chen Cho Message-Id: References: <1534272066-9366-1-git-send-email-andrea.parri@amarulasolutions.com> To: Andrea Parri Sender: linux-kernel-owner@vger.kernel.org List-ID: Hi Andrea, > The barriers are unneeded; wait_woken() and woken_wake_function() > already provide us with the required synchronization: remove them > and document that we're relying on the (implicit) synchronization > provided by wait_woken() and woken_wake_function(). > > Signed-off-by: Andrea Parri > --- > net/bluetooth/bnep/core.c | 7 ++++--- > net/bluetooth/cmtp/core.c | 14 ++++++++------ > net/bluetooth/hidp/core.c | 13 ++++++++----- > 3 files changed, 20 insertions(+), 14 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel