Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5632178pxb; Sun, 7 Nov 2021 16:49:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0crZqsjO7qItyi1qy8HOGKH0xTiA3VxMDi66tkvtCNaJ+cvSYnZmphogmnKRkRsWDIycz X-Received: by 2002:a17:906:e85:: with SMTP id p5mr92738658ejf.159.1636332589789; Sun, 07 Nov 2021 16:49:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636332589; cv=none; d=google.com; s=arc-20160816; b=jH5PCRfX+n9w1eH/gBcv/uYNTFdtpo5vbi0S3y/X5n7W9w8M/nUj0Zo0QQM36XNRVI RuCJnqF6LrEDkZSv4sGxb48Qt+JuQIuCUzQhNOsn/Wu436gNwhCBTrEwMaaTL0Q459pZ v5EHlOskz1XEm3usiQl0arweMpB79MyDL2irj3smNA52lfiYj7Wkz5YU/NUjgIyho62L wFhMEJpy7T4/or4I5I7f/ppqrUCFr95AQRDqbcZiWB7lcgdP1P1uo8yBZ7e3Om4QLkSm hDmWm4MvEA4ydPe5oMrOCHbBTR7sATQ8CooEoLKsViaHpoFTvGo8Tmzj9lCXa9vava47 iniA== 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=pD0yPFeTidJofeCm4UAdD3c5bIA9Qc7ttUvM09LckTw=; b=jY0YBHX5aOxueO60qV3YU9cmX0vYv9PblWZFyKk/Fpz/lZigZe2KAPk5ZFXsI6aQaM Gu5krFxC2qXQNgA4nOitsTFJdY+PXu3L1go3vPde604uhCy5SGDQJphhXCNLGj8guGV+ M2+n9EY4dxjWDbxnD4dVOYEy6WeYOyDNi/6LwNtrCqeRcjDVZ0bwDv7/cQDcaXiL3Xpo StxzMmqdWWTgQyGpUPdepdUsAkjgt0YoDOIaiGOb193Kq9usmP9Ii1u6y2ZmCZWE+oyg +SdyHzho280Rs18m8BUZ8Wcs/gR/XdZAKcUHLQ2HeqXHG+PUoBWSlmI0q5if5omuysx1 DSjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=POUhSQjm; 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 f22si15655184edf.158.2021.11.07.16.49.15; Sun, 07 Nov 2021 16:49: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=POUhSQjm; 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 S235229AbhKGR5I (ORCPT + 99 others); Sun, 7 Nov 2021 12:57:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:56948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbhKGR5H (ORCPT ); Sun, 7 Nov 2021 12:57:07 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 03C8A60F46; Sun, 7 Nov 2021 17:54:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636307664; bh=i7Fa0iAZl1MqjtaLTFMXixa2ShnAxcvJBwDGQaBsMHM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=POUhSQjmU/lLR4ywtCcNw/NhTKvYrGMP/oiSi6j3iTkFwCil4BBy61IScg/mipnf5 tctjTykCt/HbGSm2z38fpHyy0MDx33AzybBI7+tphMhaU7n8BOwPNrtBQVYNybmmon 4rMsI+U/EetknZwn82M/sZruMc27GWStQjupj6n8SotFS0ROMfY0tyRI6E16Vko56r GX6PxlU0oYUAHRi30/GRAdKQC0nK5vyosP3UEkAm/NgB4YluF131GJ7cV8IlZCxJMd +aRNktmmX7jo2mInzztEUoczRbNkg3C2sIXfjQ+XLPwweiALWAGsizPYPAcYX4f7vM NBI6d1ReGC5kA== Date: Sun, 7 Nov 2021 19:54:20 +0200 From: Leon Romanovsky To: Ido Schimmel Cc: Jakub Kicinski , 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: References: <9716f9a13e217a0a163b745b6e92e02d40973d2c.1635701665.git.leonro@nvidia.com> <20211101161122.37fbb99d@kicinski-fedora-PC1C0HJN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 07, 2021 at 07:16:05PM +0200, Ido Schimmel wrote: > On Mon, Nov 01, 2021 at 04:11:22PM -0700, Jakub Kicinski wrote: > > 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? <...> > > > > (3) should we let drivers take refs on the devlink instance? > > I think it's fine mainly because I don't expect it to be used by too > many drivers other than netdevsim which is somewhat special. Looking at > the call sites of devlink_get() in netdevsim, it is only called from > places (debugfs and trap workqueue) that shouldn't be present in real > drivers. Sorry, I'm obligated to ask. In which universe is it ok to create new set of API that no real driver should use? Thanks