mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
net: Convert uevent_net_ops
uevent_net_init() and uevent_net_exit() create and destroy netlink socket, and these actions serialized in netlink code. Parallel execution with other pernet_operations makes the socket disappear earlier from uevent_sock_list on ->exit. As userspace can't be interested in broadcast messages of dying net, and, as I see, no one in kernel listen them, we may safely make uevent_net_ops async. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Acked-by: Andrei Vagin <avagin@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
906f63ec1d
commit
15898a011b
1 changed files with 1 additions and 0 deletions
|
@ -650,6 +650,7 @@ static void uevent_net_exit(struct net *net)
|
||||||
static struct pernet_operations uevent_net_ops = {
|
static struct pernet_operations uevent_net_ops = {
|
||||||
.init = uevent_net_init,
|
.init = uevent_net_init,
|
||||||
.exit = uevent_net_exit,
|
.exit = uevent_net_exit,
|
||||||
|
.async = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init kobject_uevent_init(void)
|
static int __init kobject_uevent_init(void)
|
||||||
|
|
Loading…
Reference in a new issue