From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next 1/2 v4] net: add uevent socket member Date: Thu, 22 Mar 2018 11:18:45 -0400 (EDT) Message-ID: <20180322.111845.2287793858307871828.davem@davemloft.net> References: <20180319121731.14449-1-christian.brauner@ubuntu.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: ebiederm@xmission.com, gregkh@linuxfoundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, serge@hallyn.com, avagin@virtuozzo.com, ktkhai@virtuozzo.com To: christian.brauner@ubuntu.com Return-path: In-Reply-To: <20180319121731.14449-1-christian.brauner@ubuntu.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Christian Brauner Date: Mon, 19 Mar 2018 13:17:30 +0100 > This commit adds struct uevent_sock to struct net. Since struct uevent_sock > records the position of the uevent socket in the uevent socket list we can > trivially remove it from the uevent socket list during cleanup. This speeds > up the old removal codepath. > Note, list_del() will hit __list_del_entry_valid() in its call chain which > will validate that the element is a member of the list. If it isn't it will > take care that the list is not modified. > > Signed-off-by: Christian Brauner Applied.