aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rwsem-spinlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rwsem-spinlock.c')
-rw-r--r--lib/rwsem-spinlock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rwsem-spinlock.c b/lib/rwsem-spinlock.c
index 21f0db2c9711..40ffde940a86 100644
--- a/lib/rwsem-spinlock.c
+++ b/lib/rwsem-spinlock.c
@@ -76,7 +76,7 @@ __rwsem_do_wake(struct rw_semaphore *sem, int wakewrite)
76 list_del(&waiter->list); 76 list_del(&waiter->list);
77 tsk = waiter->task; 77 tsk = waiter->task;
78 /* Don't touch waiter after ->task has been NULLed */ 78 /* Don't touch waiter after ->task has been NULLed */
79 mb(); 79 smp_mb();
80 waiter->task = NULL; 80 waiter->task = NULL;
81 wake_up_process(tsk); 81 wake_up_process(tsk);
82 put_task_struct(tsk); 82 put_task_struct(tsk);
@@ -91,7 +91,7 @@ __rwsem_do_wake(struct rw_semaphore *sem, int wakewrite)
91 91
92 list_del(&waiter->list); 92 list_del(&waiter->list);
93 tsk = waiter->task; 93 tsk = waiter->task;
94 mb(); 94 smp_mb();
95 waiter->task = NULL; 95 waiter->task = NULL;
96 wake_up_process(tsk); 96 wake_up_process(tsk);
97 put_task_struct(tsk); 97 put_task_struct(tsk);
@@ -123,7 +123,7 @@ __rwsem_wake_one_writer(struct rw_semaphore *sem)
123 list_del(&waiter->list); 123 list_del(&waiter->list);
124 124
125 tsk = waiter->task; 125 tsk = waiter->task;
126 mb(); 126 smp_mb();
127 waiter->task = NULL; 127 waiter->task = NULL;
128 wake_up_process(tsk); 128 wake_up_process(tsk);
129 put_task_struct(tsk); 129 put_task_struct(tsk);