diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-31 15:34:58 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-31 15:34:58 -0500 |
commit | 86579dd06deecfa6ac88d5e84e4d63c397cd6f6d (patch) | |
tree | b4475d3ccde53015ad84a06e4e55e64591171b75 /ipc/mqueue.c | |
parent | 7ea9ea832212c4a755650f7c7cc1ff0b63292a41 (diff) | |
parent | a0f067802576d4eb4c65d40b8ee7d6ea3c81dd61 (diff) |
Merge branch 'master'
Diffstat (limited to 'ipc/mqueue.c')
-rw-r--r-- | ipc/mqueue.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index fd2e26b6f966..41ecbd440fed 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -25,6 +25,8 @@ | |||
25 | #include <linux/netlink.h> | 25 | #include <linux/netlink.h> |
26 | #include <linux/syscalls.h> | 26 | #include <linux/syscalls.h> |
27 | #include <linux/signal.h> | 27 | #include <linux/signal.h> |
28 | #include <linux/mutex.h> | ||
29 | |||
28 | #include <net/sock.h> | 30 | #include <net/sock.h> |
29 | #include "util.h" | 31 | #include "util.h" |
30 | 32 | ||
@@ -51,7 +53,6 @@ | |||
51 | #define HARD_MSGMAX (131072/sizeof(void*)) | 53 | #define HARD_MSGMAX (131072/sizeof(void*)) |
52 | #define DFLT_MSGSIZEMAX 8192 /* max message size */ | 54 | #define DFLT_MSGSIZEMAX 8192 /* max message size */ |
53 | 55 | ||
54 | #define NOTIFY_COOKIE_LEN 32 | ||
55 | 56 | ||
56 | struct ext_wait_queue { /* queue of sleeping tasks */ | 57 | struct ext_wait_queue { /* queue of sleeping tasks */ |
57 | struct task_struct *task; | 58 | struct task_struct *task; |
@@ -761,7 +762,7 @@ out_unlock: | |||
761 | * The receiver accepts the message and returns without grabbing the queue | 762 | * The receiver accepts the message and returns without grabbing the queue |
762 | * spinlock. Therefore an intermediate STATE_PENDING state and memory barriers | 763 | * spinlock. Therefore an intermediate STATE_PENDING state and memory barriers |
763 | * are necessary. The same algorithm is used for sysv semaphores, see | 764 | * are necessary. The same algorithm is used for sysv semaphores, see |
764 | * ipc/sem.c fore more details. | 765 | * ipc/sem.c for more details. |
765 | * | 766 | * |
766 | * The same algorithm is used for senders. | 767 | * The same algorithm is used for senders. |
767 | */ | 768 | */ |