From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next 17/17] net: sched: unlock rules update API Date: Mon, 12 Nov 2018 09:30:14 -0800 (PST) Message-ID: <20181112.093014.891880255643252936.davem@davemloft.net> References: <1542009346-23780-1-git-send-email-vladbu@mellanox.com> <1542009346-23780-18-git-send-email-vladbu@mellanox.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, ast@kernel.org, daniel@iogearbox.net To: vladbu@mellanox.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:57440 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727247AbeKMDY2 (ORCPT ); Mon, 12 Nov 2018 22:24:28 -0500 In-Reply-To: <1542009346-23780-18-git-send-email-vladbu@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Vlad Buslov Date: Mon, 12 Nov 2018 09:55:46 +0200 > Register netlink protocol handlers for message types RTM_NEWTFILTER, > RTM_DELTFILTER, RTM_GETTFILTER as unlocked. Set rtnl_held variable that > tracks rtnl mutex state to be false by default. This whole conditional locking mechanism is really not clean and makes this code so much harder to understand and audit. Please improve the code so that this kind of construct is not needed. Thank you.