Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4473538imu; Tue, 18 Dec 2018 15:52:11 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vl+Z8Ltc8pfEdN78pwlGkYIlJKwrFgOxPKb3+3KJtQCOAkAJCEWwDSbONFS94MO91YXP2W X-Received: by 2002:a62:5d0c:: with SMTP id r12mr19160149pfb.0.1545177131405; Tue, 18 Dec 2018 15:52:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545177131; cv=none; d=google.com; s=arc-20160816; b=riSDIgbVQt5PVGXgvlQxPKWbmucWLJ7OIyTKX1dwhewOuRctV2ogC980zSmHwW+kkk 3IQj0Sr1X//wAieStTOPqv9NIveL6zyZrEOrQwrlfB2HW96cu9MNUnI2VjxcKoAk6acH T6jpbUYj9VUkYMTnxNJX3PRxiWgF7rGwAbsrpi8BU9cnVQWD2uAVQLNc6r614LNRuU4i GEJhYw9LvmLGLePuBVU6NF29f+W1upv1mwHUjm7nPX8IbaJkrE54a7mk8Vrnp3L/fcEe 6yLYLVE2sATaRk6eVuVARPLGmhBY6nkBqEAoVlmB1NJS6AnX4S4oZ8dxOGCSU9/dxg4o IIsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=235OiPHsZ5+FGwDvo8UtdpMORwmbD4KpFMBULXzT0S4=; b=lsjp0THPzmtujYENvqOmBDPIDPfItkJzh2JtvQbtBC/g4COzJhjMLNgvtIZtqN445a 6MKaErGTWOHaBrRuyEschb4FVphG+bniWxcFISdf9p32El2ezjI/XEh67WmsyWaEuyop wD56fUXy2U2Aq6kj2QL4Qw57RyTPxNb/q3mY5k3HrI98IW4btKhEAwAT9fD3MRzIUOC7 vSthZoVgO+G+EoPCxr+M9P0Rg/FqRC8npASsexHmcynPyem8T2mLCUYC6DiiO9Xzok9K FQBgsGJ9dNJ5vnPl9d1ldqTfJxM5xYags0SP6AEwPpv2R5he8nYByWHw5Ck6jG7T8Yb0 9Srg== ARC-Authentication-Results: i=1; mx.google.com; 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 w17si13993086pgl.6.2018.12.18.15.51.55; Tue, 18 Dec 2018 15:52:11 -0800 (PST) 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; 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 S1727957AbeLRXt4 (ORCPT + 99 others); Tue, 18 Dec 2018 18:49:56 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:38686 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727854AbeLRXtz (ORCPT ); Tue, 18 Dec 2018 18:49:55 -0500 Received: from marcel-macpro.fritz.box (p4FF9F1DE.dip0.t-ipconnect.de [79.249.241.222]) by mail.holtmann.org (Postfix) with ESMTPSA id 8F4BFCEE94; Wed, 19 Dec 2018 00:57:32 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: [PATCH] bluetooth: Remove unnecessary smp_mb__after_atomic() barriers From: Marcel Holtmann In-Reply-To: <20181127112225.6177-1-andrea.parri@amarulasolutions.com> Date: Wed, 19 Dec 2018 00:49:53 +0100 Cc: Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: <20181127112225.6177-1-andrea.parri@amarulasolutions.com> To: Andrea Parri X-Mailer: Apple Mail (2.3445.102.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrea, > The barriers are redundant because atomic_test_and_clear_bit() already > provides the required full ordering for the cases in question (that is, > when the bit is cleared). > > Signed-off-by: Andrea Parri > --- > drivers/bluetooth/btusb.c | 8 ++------ > drivers/bluetooth/hci_intel.c | 16 ++++------------ > 2 files changed, 6 insertions(+), 18 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel