Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1195362pxb; Wed, 10 Feb 2021 02:28:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUM2igosH5hNr285gKKM4yngYIJj0fduf4MSTqgjCR226+rVP8+n6QD59YpLggh8tzX4Xo X-Received: by 2002:a17:906:39c6:: with SMTP id i6mr2321615eje.433.1612952913335; Wed, 10 Feb 2021 02:28:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612952913; cv=none; d=google.com; s=arc-20160816; b=zlD0HCcpM/21ufBNZdZByt9xpU0q52eMV5g5K5A4DD1S3dtkoPHxNKGSMlrSSnj6Je FFHP5TX9JNZRifZzLFB0tCDQDAgoQPUbzRtLPlKXEUkdjSgifJPnEHTm1auHBrA0OM0l zsBa+w2uufweyWc7zAdQEX9i8d/MTBmVl2jBDRA5FPiI70WbQdqaQ9N8EMZVzAtdZuHe fIeee+tcGkeVYgjMaDS7gGF2qkATtqJctQcYHaBEWEcxJsjBequyEVVYx+F0XVr6jZwb v18LsnrB2Fu7xn4lfhAuI+uDfVg3GNWvHJFd7ZuDP+gJwBBK52fxWkbsxIflYMI8pBhE 9Yug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wXYUm5sqPqEmEMkn7WH/JtpvQmsaYI2cjrart5PSwqI=; b=QD2AEkLpbmk9+cViSf63mudqdDGQWOcas0tIPavTpCe5WaCInVGhavPWHomAdsRQ9Y pMU744iQbw0Hu+UJ3umfFW1waUh7iO9fZfDDnJ3vYRcpu2YyE86xaFQmryuPmsWf/BrP mfjHtg/SIzaARddxUczUn8gJ7hhCBfV02yqc9M13+zsbXekxaTKqyLuflrNQbZLJd3iQ +bYvDYzB18DrX9O33qpRHbDxv8vFRyk6CozsqT6n8LoH4LX8LdX79BSsyt0LVYM9Zlig D1ivR1Jc39gGru8x59GNiCrUnndRdfgurL4MofaERjOCebPHy+597naYGZzotech1FPT CYEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=AMefiAdY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si951490ejg.362.2021.02.10.02.28.09; Wed, 10 Feb 2021 02:28:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=AMefiAdY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231317AbhBJK1K (ORCPT + 99 others); Wed, 10 Feb 2021 05:27:10 -0500 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:56723 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229970AbhBJKOO (ORCPT ); Wed, 10 Feb 2021 05:14:14 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id D48B858011C; Wed, 10 Feb 2021 05:13:02 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 10 Feb 2021 05:13:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=wXYUm5 sqPqEmEMkn7WH/JtpvQmsaYI2cjrart5PSwqI=; b=AMefiAdY+GroMjfPiYxXzS TAUtIPzaM5CiXWePeYtd0vK2JCl9YVzCJ3h0t1XndvC1GOHB0CWjjNgMla7aD0J2 v+Qx0nVTDlZEjOAGzFLSimljOht1MGVGC1UEGM6mIoG8ya+gj1jreMeZGu9xjOOn oP71xyDwP6N/Kpt20CPl+pMOWdk4N3phhDZebdC5zLWQoxZzaeIISboAXCDPVD3F wBH4x0UNNtL5ftSWE55HIMkeaPSgOOGPK0riRgW0VY6bfm35sN5cc8pHGGDbPgRk BFsjIevyaLl9Yzy6zxIAc8Lg2x/JP6kaKVwlCgc/AvkeXQBfAcf2yZscFXmPA3jw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrheejgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepkfguohcuufgt hhhimhhmvghluceoihguohhstghhsehiughoshgthhdrohhrgheqnecuggftrfgrthhtvg hrnheptdffkeekfeduffevgeeujeffjefhtefgueeugfevtdeiheduueeukefhudehleet necukfhppeekgedrvddvledrudehfedrgeegnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepihguohhstghhsehiughoshgthhdrohhrgh X-ME-Proxy: Received: from localhost (igld-84-229-153-44.inter.net.il [84.229.153.44]) by mail.messagingengine.com (Postfix) with ESMTPA id B6CFC1080059; Wed, 10 Feb 2021 05:13:00 -0500 (EST) Date: Wed, 10 Feb 2021 12:12:57 +0200 From: Ido Schimmel To: Vladimir Oltean Cc: Jakub Kicinski , "David S. Miller" , Andrew Lunn , Vivien Didelot , Florian Fainelli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bridge@lists.linux-foundation.org, Roopa Prabhu , Nikolay Aleksandrov , Jiri Pirko , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Vadym Kochan , Taras Chornyi , Grygorii Strashko , Ioana Ciornei , Ivan Vecera , linux-omap@vger.kernel.org Subject: Re: [PATCH v3 net-next 07/11] net: prep switchdev drivers for concurrent SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS Message-ID: <20210210101257.GA287766@shredder.lan> References: <20210210091445.741269-1-olteanv@gmail.com> <20210210091445.741269-8-olteanv@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210210091445.741269-8-olteanv@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2021 at 11:14:41AM +0200, Vladimir Oltean wrote: > From: Vladimir Oltean > > Because the bridge will start offloading SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS > while not serialized by any lock such as the br->lock spinlock, existing > drivers that treat that attribute and cache the brport flags might no > longer work correctly. Can you explain the race? This notification is sent from sysfs/netlink call path, both of which take rtnl.