linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] softirq: Replace this_cpu_write with __this_cpu_write if irq is disabled
@ 2019-06-18 14:33 Muchun Song
  2019-06-23 16:19 ` [tip:irq/core] softirq: Use __this_cpu_write() in takeover_tasklets() tip-bot for Muchun Song
  2019-06-24 23:04 ` [PATCH] softirq: Replace this_cpu_write with __this_cpu_write if irq is disabled Paul E. McKenney
  0 siblings, 2 replies; 3+ messages in thread
From: Muchun Song @ 2019-06-18 14:33 UTC (permalink / raw)
  To: joel, tglx, mingo, rostedt, frederic, paulmck, alexander.levin, peterz
  Cc: linux-kernel

Irq is disabled before this_cpu_write(), so we can Replace this_cpu_write()
with __this_cpu_write().

Signed-off-by: Muchun Song <smuchun@gmail.com>
---
 kernel/softirq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/softirq.c b/kernel/softirq.c
index 2c3382378d94..eaf3bdf7c749 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -650,7 +650,7 @@ static int takeover_tasklets(unsigned int cpu)
 	/* Find end, append list for that CPU. */
 	if (&per_cpu(tasklet_vec, cpu).head != per_cpu(tasklet_vec, cpu).tail) {
 		*__this_cpu_read(tasklet_vec.tail) = per_cpu(tasklet_vec, cpu).head;
-		this_cpu_write(tasklet_vec.tail, per_cpu(tasklet_vec, cpu).tail);
+		__this_cpu_write(tasklet_vec.tail, per_cpu(tasklet_vec, cpu).tail);
 		per_cpu(tasklet_vec, cpu).head = NULL;
 		per_cpu(tasklet_vec, cpu).tail = &per_cpu(tasklet_vec, cpu).head;
 	}
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-24 23:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-18 14:33 [PATCH] softirq: Replace this_cpu_write with __this_cpu_write if irq is disabled Muchun Song
2019-06-23 16:19 ` [tip:irq/core] softirq: Use __this_cpu_write() in takeover_tasklets() tip-bot for Muchun Song
2019-06-24 23:04 ` [PATCH] softirq: Replace this_cpu_write with __this_cpu_write if irq is disabled Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).