Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp293469pxb; Wed, 27 Oct 2021 03:14:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwYMTwIAZsSE1c2HLFjJ3mnvQWIRkR3TjSXN9xcHkXOp/qFc4nSMdAKI+HgEdtbE4yflR0 X-Received: by 2002:a17:90b:3e86:: with SMTP id rj6mr4890776pjb.78.1635329698426; Wed, 27 Oct 2021 03:14:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635329698; cv=none; d=google.com; s=arc-20160816; b=Y4wtdQh+AZ4xl5gq2Jm68YeKlXPCqthm8QsO/VdIneDhxx+CnhRlnaBcaZc31rkTIT GxEz8iXw0QCT9/kQyx+FYpbcGf5VsrYtZh8dpM/m5QV9ZH6IhmQDilISZn2GQPxusi/f RuiIBh+zebb+qWXpJNTBn1tpZEW4biJdXCAxu1K0szgQGfUYhLdDEF8kaGIzg3IDXFDl v3Vl/oBF275kIJ84YUbrL7dFLxd/0kQnLOK4xy23lKOjwn2ovk3j/0vsg986uzjvfZDJ 1B4QmzB3IPwC7gnofBXo1tpevHdkYO7A5IS13huhoiphv3luwgCCGuO5kfIuhcDrKzO6 rYMw== 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=wMFIbzOhg8fs2HzB/3QRni58dyx+z4SqHg/NrlcN1q4=; b=H8Rraq1VBTbu0mnviyeQq9GfiwpDSXfova5BkGsWE/5kRJp87LVb+qkZi7ypMP0nVF MdDbssDvEVBGeiE+BSrlLiTNoEL1QIjBioeMmzUdAnB9SmPXrYXfrCpkSxwUL2nTRcWt 5azTXUUIps3tLoV3um4L5bCFIpHbFX7A3jInmuVKoWdDYIjgvgXPFlvFT/JV3OISLPLY 1LIcnCAobNhERWEFqx+C+L12BhDyVXdBwH/wJbVgrKdplprGGdpwg6DVxz3RvZFW/Ds7 6pUgJ3a4lqcFTAYESjjSd1y7++Ls76pgjqtjEY7BUCG9S+cd1/d3/Kb4CISDdkCfFakl k7Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SfKfLsd4; 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 q85si27928109pgq.112.2021.10.27.03.14.45; Wed, 27 Oct 2021 03:14:58 -0700 (PDT) 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=SfKfLsd4; 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 S239013AbhJZT62 (ORCPT + 99 others); Tue, 26 Oct 2021 15:58:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:57416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233673AbhJZT61 (ORCPT ); Tue, 26 Oct 2021 15:58:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 30CE560F39; Tue, 26 Oct 2021 19:56:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635278163; bh=kvqJFp+cHfI3ZD3gwuLVtjyzwjfnskN22KPY7SKhbrQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SfKfLsd4jIPQqwJgsgIptNuyKr7FOigu1pBmyDsbGti2fMK1QbqPT/6z3BL0Ug9dD ZZFZ7xR+rkML9v6B4xaG4oojopRndCFFpBy/MZ/39DpLYbzZ8f42T8MEa3SwvFUwRx u9hipgh0C7iWjhdfXbRzj6crjuCG8+Dm8bs5jM50ZkArH1uGyvG4TNtcfu8WyFMMW7 ak1frWv+RkWgwMaeKAHD62yZbeDvUNM3GWt4muLFUzhPhQ1UjT0T6soTCdU0OMCLlO SDxgporhmFpRRHKu/fwc2Ti0ohJyceHsU4rilfk87AX0Hbj/8inWmT0IIYTkH1Lncj vrprE5iuX7Bxw== Date: Tue, 26 Oct 2021 12:56:02 -0700 From: Jakub Kicinski To: Leon Romanovsky Cc: Ido Schimmel , "David S . Miller" , Ido Schimmel , Jiri Pirko , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzbot+93d5accfaefceedf43c1@syzkaller.appspotmail.com, Edwin Peer Subject: Re: [PATCH net-next] netdevsim: Register and unregister devlink traps on probe/remove device Message-ID: <20211026125602.7a8f8b7e@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20211026120234.3408fbcc@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, 26 Oct 2021 22:30:23 +0300 Leon Romanovsky wrote: > On Tue, Oct 26, 2021 at 12:02:34PM -0700, Jakub Kicinski wrote: > > On Tue, 26 Oct 2021 19:14:58 +0300 Leon Romanovsky wrote: > > > I understand your temptation to send revert, at the end it is the > > > easiest solution. However, I prefer to finish this discussion with > > > decision on how the end result in mlxsw will look like. > > > > > > Let's hear Jiri and Jakub before we are rushing to revert something that > > > is correct in my opinion. We have whole week till merge window, and > > > revert takes less than 5 minutes, so no need to rush and do it before > > > direction is clear. > > > > Having drivers in a broken state will not be conducive to calm discussions. > > Let's do a quick revert and unbreak the selftests. > > No problem, I'll send a revert now, but what is your take on the direction? I haven't put in the time to understand the detail so I was hoping not to pass judgment on the direction. My likely unfounded feeling is that reshuffling ordering is not going to fix what is fundamentally a locking issue. Driver has internal locks it needs to hold both inside devlink callbacks and when registering devlink objects. We would solve a lot of the problems if those were one single lock instead of two. At least that's my recollection from the times I was actually writing driver code... > IMHO, the mlxsw layering should be fixed. All this recursive devlink re-entry > looks horrible and adds unneeded complexity. If you're asking about mlxsw or bnxt in particular I wouldn't say what they do is wrong until we can point out bugs.