From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [patch net] devlink: convert occ_get op to separate registration Date: Sun, 08 Apr 2018 12:46:31 -0400 (EDT) Message-ID: <20180408.124631.1972105251266332914.davem@davemloft.net> References: <20180405201321.16626-1-jiri@resnulli.us> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, idosch@mellanox.com, jakub.kicinski@netronome.com, dsahern@gmail.com, mlxsw@mellanox.com To: jiri@resnulli.us Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:51838 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752093AbeDHQqc (ORCPT ); Sun, 8 Apr 2018 12:46:32 -0400 In-Reply-To: <20180405201321.16626-1-jiri@resnulli.us> Sender: netdev-owner@vger.kernel.org List-ID: From: Jiri Pirko Date: Thu, 5 Apr 2018 22:13:21 +0200 > From: Jiri Pirko > > This resolves race during initialization where the resources with > ops are registered before driver and the structures used by occ_get > op is initialized. So keep occ_get callbacks registered only when > all structs are initialized. ... > Fixes: d9f9b9a4d05f ("devlink: Add support for resource abstraction") > Signed-off-by: Jiri Pirko Applied and queued up for -stable, thanks.