Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp362344pxb; Wed, 6 Oct 2021 06:38:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVUg0jIw4/8EABeAdumtoz+GrO6oBb3Op/da0QY+oU3/4JoRTqErN52MpQqwBJqQARTg4e X-Received: by 2002:a05:6402:1057:: with SMTP id e23mr34961342edu.352.1633527497945; Wed, 06 Oct 2021 06:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633527497; cv=none; d=google.com; s=arc-20160816; b=Dn9Le3wEUPBP8wgnfTCew6pJXvzRcoHcO5zuLYPkSoVHfPvKE3LVLv86oNaG9ghggY STnpV75OdcAMDkKPVzRDdWdllgkw6kL2Qn4zDzS/1EHfixXYVagPqy8HQgXK9T5HD/Cv QGid89Dwcgcb+TdJ++V8DyQiosYE/DeXS+FofCm+Y1Bbx51rfNudxtJkD7oXe92ATJY9 DhWP8T+tCpuXdJx3YonzTNkUWZ+pA3Ui0Rn79DwjexoTQNjEhaSWeVNGAbdcQNc/ydOh Ykaw/GmdZD6z97l8VGRnDgJBT97Eo9NWb/rq30csrqwgi1iJ4TFAYG4ntIRR8xXxV7my nM8g== 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=+PZT4/ND9G9X8u4El9HMidef/tiXfWt0MHsqN3fmKQA=; b=tj+KB+/wNp5xFGBlA8Bb106EfVL1NMobBuzdubKbvyQNF6omIxytvOhgLSM0t7b0vF 3eY3an9yWve/Fpae/VxmUjbcXb//mS/00b2Q/d9Su1CFFs9PVwMn1jiu8EewsSnWZ8Bw zwrFqIkkcXRGLYbAqZXEt5CMq8VW5SQp1sMLpo7k26ibUv5zxUKYwrkNdUp9HWJUdXmv R8jaRBlsn71X1X4ehuD5sLXdCcFKllGi3MQrklnF/bcUyXQBiB21xD2lgsJsMDFEFt65 j9s0uh1+YzxIVSpOpEsWed+2gqkJ1/y4TgiyksKbubfSV6Oy8wn7bQr28GojBH2eeNIC 1C/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Wjx6J/vP"; 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 la2si19493726ejc.153.2021.10.06.06.37.49; Wed, 06 Oct 2021 06:38:17 -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="Wjx6J/vP"; 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 S238058AbhJFNhw (ORCPT + 99 others); Wed, 6 Oct 2021 09:37:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:51036 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230023AbhJFNhw (ORCPT ); Wed, 6 Oct 2021 09:37:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A1BDB61076; Wed, 6 Oct 2021 13:35:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633527360; bh=a0QQ3BdKFzREAG4YgeXQxom6x0nBUGn5ofM28WH6ccg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Wjx6J/vP4Otob/UYgwjFKW/sJsmRTZftLGR07UXTSyuNmnCdrce8IcccWTBb28Mta Q+z5I7t1xm8Jnerq3+kVI7i4H/82JHrGTbJUmsy3JMLnycYPnFlC5YLXn2GEiWCJHc oQZKB+yFKkeve4aidu0yMTtX1B7usMQ2X2ivmik4VtEZ5dEQoFp9Rr8BGxP4BMzrQF 4l4o8GjHZjAzC8vFKRuIhlX8UW0BGoOvMxD4dnz+/TqFi14tLYzqrJuJffljPPc/T+ wp7esuL1Ftnb5HLwW5bsLjqhhdzD6QSRWFWS9ZN5ZZ9a/X74jc9cdQvbi3zkSLcTi4 FSyMuHAfryZQQ== Date: Wed, 6 Oct 2021 06:35:58 -0700 From: Jakub Kicinski To: Leon Romanovsky Cc: "David S . Miller" , Ido Schimmel , Ingo Molnar , Jiri Pirko , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, mlxsw@nvidia.com, Moshe Shemesh , netdev@vger.kernel.org, Saeed Mahameed , Salil Mehta , Shay Drory , Steven Rostedt , Tariq Toukan , Yisen Zhuang Subject: Re: [PATCH net-next v2 3/5] devlink: Allow set specific ops callbacks dynamically Message-ID: <20211006063558.6f4ee82d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <92971648bcad41d095d12f5296246fc44ab8f5c7.1633284302.git.leonro@nvidia.com> <20211004164413.60e9ce80@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20211005113213.0ee61358@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20211005173940.35bc7bfa@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 Wed, 6 Oct 2021 06:37:44 +0300 Leon Romanovsky wrote: > Let's chose random kernel version (v5.11) > https://elixir.bootlin.com/linux/v5.11/source/net/core/devlink.c#L10245 > as you can see, it doesn't hold ANY driver core locks, Nope, that is not what I see. > so it can be called in any time during driver .probe() or .remove(). Having a callback invoked after registering to a subsystem (which used to be the case for devlink before the changes) is _normal_. You keep talking about .probe() like it's some magic period of complete quiescence. > Drivers that have implemented ops.flash_update() have no idea about that. I bet. I don't think this discussion is going anywhere, count me out.