mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ipc: scale msgmni to the number of ipc namespaces
Since all the namespaces see the same amount of memory (the total one) this patch introduces a new variable that counts the ipc namespaces and divides msg_ctlmni by this counter. Signed-off-by: Nadia Derbey <[email protected]> Cc: Yasunori Goto <[email protected]> Cc: Matt Helsley <[email protected]> Cc: Mingming Cao <[email protected]> Cc: Pierre Peiffer <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f7bf3df8be
commit
4d89dc6ab2
4 changed files with 14 additions and 3 deletions
|
|
@ -52,6 +52,9 @@ struct ipc_namespace init_ipc_ns = {
|
|||
},
|
||||
};
|
||||
|
||||
atomic_t nr_ipc_ns = ATOMIC_INIT(1);
|
||||
|
||||
|
||||
/**
|
||||
* ipc_init - initialise IPC subsystem
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue