Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97814
b: refs/heads/master
c: dfcceb2
h: refs/heads/master
v: v3
  • Loading branch information
Nadia Derbey authored and Linus Torvalds committed Jun 6, 2008
1 parent e1a728d commit 5b1cf88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 68aa0a206a7a2dd8655a50b36e8274eb87b84544
refs/heads/master: dfcceb26f89da86ec4ac9583c4515504af8c6c84
13 changes: 6 additions & 7 deletions trunk/ipc/msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,15 @@ void recompute_msgmni(struct ipc_namespace *ns)

if (allowed < MSGMNI) {
ns->msg_ctlmni = MSGMNI;
goto out_callback;
return;
}

if (allowed > IPCMNI / nb_ns) {
ns->msg_ctlmni = IPCMNI / nb_ns;
goto out_callback;
return;
}

ns->msg_ctlmni = allowed;

out_callback:

printk(KERN_INFO "msgmni has been set to %d for ipc namespace %p\n",
ns->msg_ctlmni, ns);
}

void msg_init_ns(struct ipc_namespace *ns)
Expand All @@ -136,6 +131,10 @@ void msg_exit_ns(struct ipc_namespace *ns)
void __init msg_init(void)
{
msg_init_ns(&init_ipc_ns);

printk(KERN_INFO "msgmni has been set to %d\n",
init_ipc_ns.msg_ctlmni);

ipc_init_proc_interface("sysvipc/msg",
" key msqid perms cbytes qnum lspid lrpid uid gid cuid cgid stime rtime ctime\n",
IPC_MSG_IDS, sysvipc_msg_proc_show);
Expand Down

0 comments on commit 5b1cf88

Please sign in to comment.