[CRIU] [PATCH 2/4] ipc: set the msgmni sysctl after auto_msgmni

Andrey Vagin avagin at openvz.org
Wed Aug 13 06:51:03 PDT 2014


Because setting of auto_msgmni recalculates a value of msgmni

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 ipc_ns.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipc_ns.c b/ipc_ns.c
index a997fb4..7dc4cbd 100644
--- a/ipc_ns.c
+++ b/ipc_ns.c
@@ -298,8 +298,8 @@ static int ipc_sysctl_req(IpcVarEntry *e, int op)
 		{ "kernel/sem",			e->sem_ctls,		CTL_U32A(e->n_sem_ctls) },
 		{ "kernel/msgmax",		&e->msg_ctlmax,		CTL_U32 },
 		{ "kernel/msgmnb",		&e->msg_ctlmnb,		CTL_U32 },
-		{ "kernel/msgmni",		&e->msg_ctlmni,		CTL_U32 },
 		{ "kernel/auto_msgmni",		&e->auto_msgmni,	CTL_U32 },
+		{ "kernel/msgmni",		&e->msg_ctlmni,		CTL_U32 },
 		{ "kernel/shmmax",		&e->shm_ctlmax,		CTL_U64 },
 		{ "kernel/shmall",		&e->shm_ctlall,		CTL_U64 },
 		{ "kernel/shmmni",		&e->shm_ctlmni,		CTL_U32 },
-- 
1.9.3



More information about the CRIU mailing list