Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp596308pxh; Tue, 9 Nov 2021 15:54:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhHtztl4zdG09aorc4lgUmP903oJwaAUWbIFr7RZVwGSoiLHBRu5/mqrikj3wG/EuB2BDC X-Received: by 2002:a5e:c10d:: with SMTP id v13mr7706546iol.115.1636502089369; Tue, 09 Nov 2021 15:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636502089; cv=none; d=google.com; s=arc-20160816; b=DFEFlAw6VOljf5QZGY2/Pfjuukrg7oHJK7YBWThhfPuQSTsE4GQwGIsRl/dGLJCQXc e6zqkyvWbh4XZC8Bjkz132E4XLl04FID0Hf4Lx2HjazuhmZ++49PM/ookBulpbIKldom BiSpuI4CWbNgsCVclGoRqL9HDJRo9BIpZ4JsJwtV4jZaQ5Tscz6GR/z/7+AA+3PCAIfe ZQHsN6ujbkuGidrZcZOZGaDiDsTSdcfgs7N/dSAdpe4SOaR0d8grd4H9+ad8TiIQvJW9 VsEhTcblbh0ReUnbn2TziNu4gLZYmw/r8c7uKcMNd/4J9cIE3qAVQ/LEka69f3SQClEO ewCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=BfXMrlZsVuJEqiS2DxkQYqR/iiDbfJfADEtwRIWsUGU=; b=wOWIe0Ng3AW6SWFRfEQhN2s4zhYC44rF7muWLfs+hwJ9YIe6ncJaDNltVTkTxs0VDz G6Ta2XuDsB1DWzTl/pkulJ1EiEDuJ7akI3KoOzAnBjd0Ud/bUoK5MmkLdOG9YMcu1f81 Q0sY2GtiMgo5IU4tDiA2WuPpebop82n6t3ckQSN+MIhxH4jUyHY5kbDeg9/BupNh0Vol n7p2cwUIdyD1i/JjorGIRQ7AWiOGUPFodpXdQZvoMW+H9cdD1MV1fUCM8gxzqW83C9wV BMwFvErmzL3M9u7NBMUHYhYB6MhPQTh1agLa4uBFzLYMTQFj+57GD8KLtP0R1R+o1BeA yQuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=foM500Ey; 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 o20si24420249iow.107.2021.11.09.15.54.37; Tue, 09 Nov 2021 15:54:49 -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=foM500Ey; 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 S237716AbhKIOUZ (ORCPT + 97 others); Tue, 9 Nov 2021 09:20:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:52498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237622AbhKIOUS (ORCPT ); Tue, 9 Nov 2021 09:20:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 969E2600CD; Tue, 9 Nov 2021 14:17:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636467453; bh=rXBu4BjCjfe2WnUmVMqs6dfvqqWqixQG/xs79QcduXk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=foM500EyrOnCO2lkaYXPW8zzkutMAI5vFIN1YcnV6dCpMsN327P1esCsaMHqm6M5C OZAAPirSQxJURA8lRmmKjPhdQVo78SfbXMMUL2FJ3TWedRSJJdOGD9V5oMtD1ipMfn Cyw3VPzoMs9BSbdB4ZhMZKiA9DKierGd3sGem28gGEeNXQTxXxforJJ/vfBxBIMZsk Av/Eq1KGgjd7q06oGgSbC98r4nbVNO0jTgZXh3CJ8gG9hwMccPF+0JAQRaUe0FECJ7 s7PFI+SN4viaplWv+83FLJsfhdBWA9w5fYT1E6GFlcERyR92XeaXMSjQuZQIo+XhQI 6t3q4d9+faTpw== Date: Tue, 9 Nov 2021 06:17:29 -0800 From: Jakub Kicinski To: Leon Romanovsky Cc: Ido Schimmel , Jiri Pirko , "David S . Miller" , Jiri Pirko , 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: <20211109061729.32f20616@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20211101161122.37fbb99d@kicinski-fedora-PC1C0HJN> <20211108080918.2214996c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20211108101646.0a4e5ca4@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20211108104608.378c106e@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20211108153126.1f3a8fe8@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Nov 2021 16:12:33 +0200 Leon Romanovsky wrote: > > You'd need to tell me more about what the notifier is used for (I see > > RoCE in the call trace). I don't understand why you need to re-register > > a global (i.e. not per netns) notifier when devlink is switching name > > spaces. > > RDMA subsystem supports two net namespace aware scenarios. > > We need global netdev_notifier for shared mode. This is legacy mode where > we listen to all namespaces. We must support this mode otherwise we break > whole RDMA world. > > See commit below: > de641d74fb00 ("Revert "RDMA/mlx5: Fix devlink deadlock on net namespace deletion"") But why re-reg? To take advantage of clean event replay? IIUC the problem is that the un-reg is called from the reload_down path.