Commit 582df513 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

unix-sk: allocate unix_sk_info from a shared pool

Because unix_sk_info contains a futex, which may be used from a few
processes, we need to collect unix sockets into shared mem regions.
Reported-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 85b5a924
...@@ -705,7 +705,7 @@ int collect_unix_sockets(void) ...@@ -705,7 +705,7 @@ int collect_unix_sockets(void)
pr_info("Reading unix sockets in\n"); pr_info("Reading unix sockets in\n");
ret = collect_image(CR_FD_UNIXSK, PB_UNIXSK, ret = collect_image_sh(CR_FD_UNIXSK, PB_UNIXSK,
sizeof(struct unix_sk_info), collect_one_unixsk); sizeof(struct unix_sk_info), collect_one_unixsk);
if (!ret) if (!ret)
ret = read_sk_queues(); ret = read_sk_queues();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment