From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39F0FC433F5 for ; Tue, 2 Nov 2021 15:16:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 20B0960F24 for ; Tue, 2 Nov 2021 15:16:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234297AbhKBPSp (ORCPT ); Tue, 2 Nov 2021 11:18:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:51360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234220AbhKBPSo (ORCPT ); Tue, 2 Nov 2021 11:18:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DD8C060F36; Tue, 2 Nov 2021 15:16:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635866169; bh=2RJfzdyUckKKdYNbp4YYZ2p6D908APIJYcYYBYyFXhk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=d4O1gBGlgsqkjZutMpy3JzxA1yNy7ivrdPoGY9J5lzUz/u3BSaSM8jAmovb/SCjxt xWL5GZLxtUGPVik5shN0kah/VMMe5b9aSYiikWgGT/vHrBqzOSJ8oWaTeuYW8aW4gG zT3XRAZSbFzJ8toNxFdJawq3OxXPf6fyKCI438GxVxnMbIlsh+FMNnA5534hYGlIj6 yYpL1u0ab/nOciOoeRm5NLfjRvrXJzZL+aMS9igXoP25W2w1/Inuvhk/HS3e19XSqj G/NEezLvudo0LTGC8G5nQMEJqs1Gsc+BAGFoj3zQHfiMDRj1LeNqu7hHSfMTnCGkCZ KwtAfRy0NW8ZQ== Date: Tue, 2 Nov 2021 08:16:06 -0700 From: Jakub Kicinski To: Leon Romanovsky Cc: Edwin Peer , Ido Schimmel , Jiri Pirko , netdev Subject: Re: [RFC 0/5] devlink: add an explicit locking API Message-ID: <20211102081606.5bc39f21@kicinski-fedora-PC1C0HJN> In-Reply-To: References: <20211030231254.2477599-1-kuba@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, 2 Nov 2021 09:44:17 +0200 Leon Romanovsky wrote: > On Mon, Nov 01, 2021 at 01:04:03PM -0700, Edwin Peer wrote: > > On Sun, Oct 31, 2021 at 12:23 AM Leon Romanovsky wrote: > > > > > The average driver author doesn't know locking well and won't be able to > > > use devlink reference counting correctly. > > > > I think this problem largely only exists to the extent that locking > > and lifecycle requirements are poorly documented. :P > > I'm talking about general locking concepts that are perfectly documented > and still people do crazy things with it. :) Yet you seem to be pushing for drivers to implement their own locking.