Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp189872pxh; Tue, 9 Nov 2021 23:55:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKQht9h2+MJDz2dYVbhk744hPF6DbQcfPqJFYblaqk6L750rB3L5yNsKRDh+Vc8e+iYF8k X-Received: by 2002:a05:6602:3c2:: with SMTP id g2mr9101993iov.1.1636530929825; Tue, 09 Nov 2021 23:55:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636530929; cv=none; d=google.com; s=arc-20160816; b=VYoHoDFcf/8WjFmw5w14QfpcOpsbsu57bNNVDeE984Pz8TWrnxAJadvdxJQ8u0eFtx QwlfawFgYMoo9TYiklhJf9UI0Pye6FJAx+EYW5WZd2IFXN2W0Tp7jmSZ5Lme7a9QW2h+ fbKQhlbdjaAb01ZSzD+uHDVk2ER7iXOGcdL90g2oaWO6cGOaMuxBzZjRRG8SGeEYjyWv uzGao897JCI4quIQcNafqyc3vjQNhvAsqLDAes+DVNHOogluI3xifcQBz4p/mQ0lFiDa P2ERDg+qXRvUcUFZRTs6hqdniYZWxxZaimd7qX+K0PDevSlDuQUaWRlpWF2nH/lLLYW8 9AZg== 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=O6Vw/lKaFz4hLFFI2Bwc1EAv08sVm6Ax5Uzvpqd5FIg=; b=UWNXOyogPnIOzScfFNAFzywqwpYlD8TnLHxaG8X2KcElBl2UeQHDwv5tUcRY3iD+uK TmKtP6b9Mt+/F10WGW/BzBGnwA9kGuizealyvYikxKgX/mCiB5e8psWfmfHi+o6yqroL LCzKGAcjDvGsDHkbFUD+xOxA6UNmqoN8cJxN3jyGglqf7gSeKXO2OsLP3WFZ+WMxsl5f AD0wKDXy5wQHcAc1pyKuIiwc+Yo7I21PKrJfSawhNozKcyYJmVWPauLWskLnF/s5dbm9 3wOeSjMK9AZM50/k4r2/6icyt/gd8MaqOmVlmseik+6vRvXMRG45gs3/SV/MdhsG4GSj C1nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JM3sqKho; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b2si31859625ilr.152.2021.11.09.23.54.50; Tue, 09 Nov 2021 23:55:29 -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=@kernel.org header.s=k20201202 header.b=JM3sqKho; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbhKJHy7 (ORCPT + 99 others); Wed, 10 Nov 2021 02:54:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:60812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbhKJHy6 (ORCPT ); Wed, 10 Nov 2021 02:54:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A591560F9B; Wed, 10 Nov 2021 07:52:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636530731; bh=fkm25A4U/u9I2kk7C+DQZScS5Hnz6TKJ029JuTf7mwU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JM3sqKhoD/lj+ZixFQJ921ee0h4iqyPNE0CORhB9s4aGw8TMnFJcsJZhXjZxVhhMy 6f/XgIj0iTxPT/1+yN7q8Ie8KWCR6m6KXXyGlf/WfaQL3vlu8i+OKu8F+dizcj75iD TES4/pCFa4QYYyEDwMNQ2tN/zgk5Fi3TRwbOlDuD8P7jws1R+nfEL+G6YxbSOMpyZV kkNSmd5ODx7KC2LrYQ0fVePqtAEf9+KYNke/8XqUm7I1BKRjjW2x0/eCHIXnyudDSb K/Y4ZWrQLJwekyW6eRzFocIWL25/oM4Ahzw71knWo9Xf38SkCYvKrN5lETIbWz7qni PYsbnYRSt/+NQ== Date: Wed, 10 Nov 2021 09:52:07 +0200 From: Leon Romanovsky To: Jakub Kicinski Cc: Jason Gunthorpe , Jiri Pirko , Ido Schimmel , Jiri Pirko , "David S . Miller" , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, edwin.peer@broadcom.com Subject: Re: [PATCH net-next] devlink: Require devlink lock during device reload Message-ID: References: <20211108101646.0a4e5ca4@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20211108104608.378c106e@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20211108153126.1f3a8fe8@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20211109144358.GA1824154@nvidia.com> <20211109070702.17364ec7@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20211109153335.GH1740502@nvidia.com> <20211109082042.31cf29c3@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211109082042.31cf29c3@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 09, 2021 at 08:20:42AM -0800, Jakub Kicinski wrote: > On Tue, 9 Nov 2021 11:33:35 -0400 Jason Gunthorpe wrote: > > > > I once sketched out fixing this by removing the need to hold the > > > > per_net_rwsem just for list iteration, which in turn avoids holding it > > > > over the devlink reload paths. It seemed like a reasonable step toward > > > > finer grained locking. > > > > > > Seems to me the locking is just a symptom. > > > > My fear is this reload during net ns destruction is devlink uAPI now > > and, yes it may be only a symptom, but the root cause may be unfixable > > uAPI constraints. > > If I'm reading this right it locks up 100% of the time, what is a uAPI > for? DoS? ;) > > Hence my questions about the actual use cases. It is important to add that this problem existed even before auxiliary bus conversion. Thanks