Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276647
b: refs/heads/master
c: 6f68657
h: refs/heads/master
i:
  276645: 3a6a9ea
  276643: c98ea64
  276639: db1267e
v: v3
  • Loading branch information
Al Viro committed Dec 9, 2011
1 parent 00be59c commit 90b2014
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 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: 905ad269c55fc62bee3da29f7b1d1efeba8aa1e1
refs/heads/master: 6f686574cccc2ef66fb38e41f19cedd81e7b4504
8 changes: 3 additions & 5 deletions trunk/ipc/mqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ void mq_clear_sbinfo(struct ipc_namespace *ns)

void mq_put_mnt(struct ipc_namespace *ns)
{
mntput(ns->mq_mnt);
kern_unmount(ns->mq_mnt);
}

static int __init init_mqueue_fs(void)
Expand All @@ -1291,11 +1291,9 @@ static int __init init_mqueue_fs(void)

spin_lock_init(&mq_lock);

init_ipc_ns.mq_mnt = kern_mount_data(&mqueue_fs_type, &init_ipc_ns);
if (IS_ERR(init_ipc_ns.mq_mnt)) {
error = PTR_ERR(init_ipc_ns.mq_mnt);
error = mq_init_ns(&init_ipc_ns);
if (error)
goto out_filesystem;
}

return 0;

Expand Down
5 changes: 0 additions & 5 deletions trunk/ipc/msgutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ DEFINE_SPINLOCK(mq_lock);
*/
struct ipc_namespace init_ipc_ns = {
.count = ATOMIC_INIT(1),
#ifdef CONFIG_POSIX_MQUEUE
.mq_queues_max = DFLT_QUEUESMAX,
.mq_msg_max = DFLT_MSGMAX,
.mq_msgsize_max = DFLT_MSGSIZEMAX,
#endif
.user_ns = &init_user_ns,
};

Expand Down

0 comments on commit 90b2014

Please sign in to comment.