Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3560742pxb; Mon, 1 Nov 2021 16:13:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdU380AqR4elqL7TuYojXTL5b4e5VYNVYrRfxDKXi8xYyJn6e+l5AO8CpeoRe3Ha5jPqrE X-Received: by 2002:a05:6602:2ac8:: with SMTP id m8mr24053210iov.112.1635808381483; Mon, 01 Nov 2021 16:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635808381; cv=none; d=google.com; s=arc-20160816; b=Oeeqe6DEbDWF/E+sRoSxCYJJpRuBx9+xEEv06BidBoHqP+CFmgFjN2ME0EOHW0KJNW mIuzQOIjrknKZKbRhLNHOM7edQkLHjDaUZQ0YUlKXRldolKD6YR69bbPBTAQHSoyA0Xn leVAlGJ/8KT9+OOUOkoYeoKk8OMete+g62q4VaC3Bv2ZwRhKuVBPp0YHVjRTPtbnsZ7X cyeeNWt7e5cknpSbcOSQItsOSrswIbS8SY+iSkvBgBJKfTPRWLHV0B4dCWIZz23FhCNJ afeDo1EW/SuJGAe5sotUvQHU1iH5YigGupqQ3016E0ZSnM9rcBSyBqTkgQZRHv0n+KkF f96Q== 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=3/uo9nmdkBu54r8JNlrLxNmBoPA+RBSqWAJUonCB6Cg=; b=VjR2s+PSV/ZwMQiupTfRxCy6qwm5aNLjoEI0T+EJ3qH55SIXuv/McomiQk8d0pC4UP 0oLqioHAuSMi6wos7orZ+kDo+kEz/iCSfkw2M+bOYNkQEddwggDBjuq3fkyQnLtBPIPF w6VPoYnd/gdsf4G3FD413qogcw8WwupNygtvpzxKOBbJb0g5vep2Hute+aQMYPCBmLJ+ ZZqi79hDGtE6o7kb+53bxaTxdIJ3JTE7ui9/8g9XUT6gEXsan8An6XJSxz2Vf/9gTUbE GN+OMW+IXn3+vciXQvTsMRoBUHFrfk3KKBkWUzRYS5y5+hGTXl6jb0vv+d6mtT/+hbCf DS4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KnjFfslL; 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 g14si29856031ioo.113.2021.11.01.16.12.50; Mon, 01 Nov 2021 16:13:01 -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=KnjFfslL; 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 S232531AbhKAXOX (ORCPT + 99 others); Mon, 1 Nov 2021 19:14:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:33016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232572AbhKAXOS (ORCPT ); Mon, 1 Nov 2021 19:14:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D56E9611C0; Mon, 1 Nov 2021 23:11:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635808284; bh=NN5tF1XlTzG+RznUlYdaLrzQJJw9gP5fU5pzMvRrSEM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KnjFfslLAV/okcq1Cq5guHlq/HqK3U9jXvqUcKOd84X1+vbmXUytpQihOUNEIkXO7 SoPa6tXmopkzw/U4W+vWHO0HmeJFmOlkFgH+jL1peGaCAYUb+MpFQhjgNx1vxlGQuj T3TNF8qRnnmKUOfGiczTMLoQQowxERaXO2t0dzUZ56aZSILmfIGtf8+NIlSeaUBZsI osA4AEY6dzV+DiWlekaNEODfIMjUAuvUq2+aQe7qoz+Tu1IVNEPp0sFqT4VkR1mxNo bkgJEccXRjteG5ffOeHs4pKSlsTyY3gc8m2Ry0J0aRi2vSrxjBS6LxlPZgokT8SMx2 kafOvKj6d144w== Date: Mon, 1 Nov 2021 16:11:22 -0700 From: Jakub Kicinski To: Ido Schimmel Cc: Jiri Pirko , Leon Romanovsky , "David S . Miller" , Leon Romanovsky , 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: <20211101161122.37fbb99d@kicinski-fedora-PC1C0HJN> In-Reply-To: References: <9716f9a13e217a0a163b745b6e92e02d40973d2c.1635701665.git.leonro@nvidia.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 Mon, 1 Nov 2021 22:52:19 +0200 Ido Schimmel wrote: > > >Signed-off-by: Leon Romanovsky > > > > Looks fine to me. > > > > Reviewed-by: Jiri Pirko > > Traces from mlxsw / netdevsim below: Thanks a lot for the testing Ido! Would you mind giving my RFC a spin as well on your syzbot machinery? Any input on the three discussion points there? (1) should we have a "locked" and "unlocked" API or use lock nesting? (2) should we expose devlink lock so that drivers can use devlink as a framework for their locking needs? (3) should we let drivers take refs on the devlink instance?