arch: Mass conversion of smp_mb__*()
Mostly scripted conversion of the smp_mb__* barriers. Signed-off-by: Peter Zijlstra <peterz@infradead.org> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Link: http://lkml.kernel.org/n/tip-55dhyhocezdw1dg7u19hmh1u@git.kernel.org Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: linux-arch@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:

committed by
Ingo Molnar

parent
1b15611e1c
commit
4e857c58ef
@@ -1326,7 +1326,7 @@ static int __dev_close_many(struct list_head *head)
|
||||
* dev->stop() will invoke napi_disable() on all of it's
|
||||
* napi_struct instances on this device.
|
||||
*/
|
||||
smp_mb__after_clear_bit(); /* Commit netif_running(). */
|
||||
smp_mb__after_atomic(); /* Commit netif_running(). */
|
||||
}
|
||||
|
||||
dev_deactivate_many(head);
|
||||
@@ -3343,7 +3343,7 @@ static void net_tx_action(struct softirq_action *h)
|
||||
|
||||
root_lock = qdisc_lock(q);
|
||||
if (spin_trylock(root_lock)) {
|
||||
smp_mb__before_clear_bit();
|
||||
smp_mb__before_atomic();
|
||||
clear_bit(__QDISC_STATE_SCHED,
|
||||
&q->state);
|
||||
qdisc_run(q);
|
||||
@@ -3353,7 +3353,7 @@ static void net_tx_action(struct softirq_action *h)
|
||||
&q->state)) {
|
||||
__netif_reschedule(q);
|
||||
} else {
|
||||
smp_mb__before_clear_bit();
|
||||
smp_mb__before_atomic();
|
||||
clear_bit(__QDISC_STATE_SCHED,
|
||||
&q->state);
|
||||
}
|
||||
@@ -4244,7 +4244,7 @@ void __napi_complete(struct napi_struct *n)
|
||||
BUG_ON(n->gro_list);
|
||||
|
||||
list_del(&n->poll_list);
|
||||
smp_mb__before_clear_bit();
|
||||
smp_mb__before_atomic();
|
||||
clear_bit(NAPI_STATE_SCHED, &n->state);
|
||||
}
|
||||
EXPORT_SYMBOL(__napi_complete);
|
||||
|
Reference in New Issue
Block a user