diff options
author | akpm@osdl.org <akpm@osdl.org> | 2005-05-01 11:58:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 11:58:47 -0400 |
commit | d59dd4620fb8d6422555a9e2b82a707718e68327 (patch) | |
tree | 78205657d24efcaa3f8314064951ac3814ed95a7 /ipc/mqueue.c | |
parent | 0d8d4d42f2d00eb65262b49f4edd4cf7ef4eb6fc (diff) |
[PATCH] use smp_mb/wmb/rmb where possible
Replace a number of memory barriers with smp_ variants. This means we won't
take the unnecessary hit on UP machines.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'ipc/mqueue.c')
-rw-r--r-- | ipc/mqueue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index cb0cd3cf3b5a..33f71520b89c 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -767,7 +767,7 @@ static inline void pipelined_send(struct mqueue_inode_info *info, | |||
767 | list_del(&receiver->list); | 767 | list_del(&receiver->list); |
768 | receiver->state = STATE_PENDING; | 768 | receiver->state = STATE_PENDING; |
769 | wake_up_process(receiver->task); | 769 | wake_up_process(receiver->task); |
770 | wmb(); | 770 | smp_wmb(); |
771 | receiver->state = STATE_READY; | 771 | receiver->state = STATE_READY; |
772 | } | 772 | } |
773 | 773 | ||
@@ -786,7 +786,7 @@ static inline void pipelined_receive(struct mqueue_inode_info *info) | |||
786 | list_del(&sender->list); | 786 | list_del(&sender->list); |
787 | sender->state = STATE_PENDING; | 787 | sender->state = STATE_PENDING; |
788 | wake_up_process(sender->task); | 788 | wake_up_process(sender->task); |
789 | wmb(); | 789 | smp_wmb(); |
790 | sender->state = STATE_READY; | 790 | sender->state = STATE_READY; |
791 | } | 791 | } |
792 | 792 | ||