diff options
Diffstat (limited to 'ipc/msgutil.c')
-rw-r--r-- | ipc/msgutil.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ipc/msgutil.c b/ipc/msgutil.c index 73c316cb8613..f095ee268833 100644 --- a/ipc/msgutil.c +++ b/ipc/msgutil.c | |||
@@ -18,19 +18,16 @@ | |||
18 | 18 | ||
19 | #include "util.h" | 19 | #include "util.h" |
20 | 20 | ||
21 | DEFINE_SPINLOCK(mq_lock); | ||
22 | |||
21 | /* | 23 | /* |
22 | * The next 2 defines are here bc this is the only file | 24 | * The next 2 defines are here bc this is the only file |
23 | * compiled when either CONFIG_SYSVIPC and CONFIG_POSIX_MQUEUE | 25 | * compiled when either CONFIG_SYSVIPC and CONFIG_POSIX_MQUEUE |
24 | * and not CONFIG_IPC_NS. | 26 | * and not CONFIG_IPC_NS. |
25 | */ | 27 | */ |
26 | struct ipc_namespace init_ipc_ns = { | 28 | struct ipc_namespace init_ipc_ns = { |
27 | .kref = { | 29 | .count = ATOMIC_INIT(1), |
28 | /* It's not for this patch to change, but should this be 1? */ | ||
29 | .refcount = ATOMIC_INIT(2), | ||
30 | }, | ||
31 | #ifdef CONFIG_POSIX_MQUEUE | 30 | #ifdef CONFIG_POSIX_MQUEUE |
32 | .mq_mnt = NULL, | ||
33 | .mq_queues_count = 0, | ||
34 | .mq_queues_max = DFLT_QUEUESMAX, | 31 | .mq_queues_max = DFLT_QUEUESMAX, |
35 | .mq_msg_max = DFLT_MSGMAX, | 32 | .mq_msg_max = DFLT_MSGMAX, |
36 | .mq_msgsize_max = DFLT_MSGSIZEMAX, | 33 | .mq_msgsize_max = DFLT_MSGSIZEMAX, |