Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3944393ybb; Mon, 23 Mar 2020 10:31:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtIcZV0u8MeBPSsnh0WPFln87d6QdO2FCFPHeneGySLhvnS6APxrayRXsXE+BHdhucqjWBX X-Received: by 2002:a05:6830:1296:: with SMTP id z22mr3910149otp.108.1584984718072; Mon, 23 Mar 2020 10:31:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584984718; cv=none; d=google.com; s=arc-20160816; b=USviPk/qzbQ6IRC1m2WKKO6j8TST+9C7itwGrdBfdjtvmegRJUMQmUePXF0SDxpl4n P3Rhj86RhhJ0Ojhv3HkwFcHFYKL8d6Q2DOMOFYwYYKsfea7HljLRiYPrNuKDxyrB/HKg p1MHIEkPbTLY8oLaFZzjvXBrWxJpsPjJub0kSL+kG6POACU8A++5jSapR/5cLt8K+CQK KKz0l1pGPxkMc5IlevHgiS1frkgOGPlNaVyTuy5khr4yWqQ/4TG4v4GyOsyuz5WWQTBm 26KSnmK/Q8S/SRo8YAzWngweHu4+uA2L9RGRglBpVndHEWu+ltWiAJDUQVd7q9nxc4uK V3UQ== 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; bh=1Mvu0X+xHg0g7CK0YXIGEJXzA9j0kOfTwfXJ981/4bw=; b=05QvDgKqF5cPQS16hf5AkRtrapAXlpwuM4FA+QQA9DdGvQd9jvWIjmVxfRITx5VodR m6TfLJn2xeX14OJDYS68B1UIbZfvDzSC8gjZNkh1q0Bs4JsTFzGqdT92rkC1juHsS6ny zI14AeK/0U6l1RrdDbfiKQ9yq5Mf6tepdneFH8ealtdzSPv14nRjoOU6mDLhFQkmfLD3 qgd9Ptsf3+lg9paSZhDT4lvSb6eLzaqBH6Nq8ZTzZJb0qPutaZ/XF23jP3u/794Vtg/M 2W/CTJ+F8DZix9pJOw2f6oogcmkK+kh8+Cpr9p0RRzdV0uOMMVpnXdOWRJlSgpS1K/YE WA9A== 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 j4si250529ooj.58.2020.03.23.10.31.44; Mon, 23 Mar 2020 10:31:58 -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; 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 S1727647AbgCWRa7 (ORCPT + 99 others); Mon, 23 Mar 2020 13:30:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:38176 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727361AbgCWRa7 (ORCPT ); Mon, 23 Mar 2020 13:30:59 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A8B1CAC26; Mon, 23 Mar 2020 17:30:57 +0000 (UTC) Date: Mon, 23 Mar 2020 10:29:54 -0700 From: Davidlohr Bueso To: oneukum@suse.com Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: Re: [PATCH 7/8] usb, cdc-acm: optimize barrier usage for Rmw atomic bitops Message-ID: <20200323172954.pyxw5v4pmuvkbjrp@linux-p48b> References: <20200129181545.25302-1-dave@stgolabs.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200129181545.25302-1-dave@stgolabs.net> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping? Can these please be picked up? On Wed, 29 Jan 2020, Davidlohr Bueso wrote: >We can avoid the unnecessary barrier on non LL/SC architectures, >such as x86. Instead, use the smp_mb__after_atomic() call. > >Signed-off-by: Davidlohr Bueso >--- > drivers/usb/class/cdc-acm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c >index 62f4fb9b362f..0bc4b558f387 100644 >--- a/drivers/usb/class/cdc-acm.c >+++ b/drivers/usb/class/cdc-acm.c >@@ -842,7 +842,7 @@ static void acm_tty_unthrottle(struct tty_struct *tty) > clear_bit(ACM_THROTTLED, &acm->flags); > > /* Matches the smp_mb__after_atomic() in acm_read_bulk_callback(). */ >- smp_mb(); >+ smp_mb__after_atomic(); > > acm_submit_read_urbs(acm, GFP_KERNEL); > } >-- >2.16.4 >