]> asedeno.scripts.mit.edu Git - linux.git/commit
net: add uevent socket member
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 19 Mar 2018 12:17:30 +0000 (13:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 15:16:42 +0000 (11:16 -0400)
commit94e5e3087a67c765be98592b36d8d187566478d5
tree3d2b8468bfa74e705a29702bb90ff2b9172e8a0b
parentaa65f636540539e2e1fd77bdcd8fc7060d19d47b
net: add uevent socket member

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 <christian.brauner@ubuntu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/net_namespace.h
lib/kobject_uevent.c