Skip to contentSkip to conversation

s390: drop smp_mb in vdso_init

PATCH Applied Michael S. Tsirkin 2 participants 2 messages Jan 5, 2016 – Jan 7, 2016 s390

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390: drop smp_mb in vdso_init

The initial s390 vdso code is heavily influenced by the powerpc version which does have a smp_wmb in vdso_init right before the vdso_ready=1 assignment. s390 has no need for that.

---

Untested.

 arch/s390/kernel/vdso.c | 2 --
 1 file changed, 2 deletions(-)
arch/s390/kernel/vdso.c +0 -2
index 59eddb0..a1cfd37 100644
@@ -299,8 +299,6 @@ static int __init vdso_init(void)
 
 	get_page(virt_to_page(vdso_data));
 
-	smp_mb();
-
 	return 0;
 }
 early_initcall(vdso_init);
Signature · 1 line
MST
#1 lore raw
Quoted 18 lines · Michael S. Tsirkin

The initial s390 vdso code is heavily influenced by the powerpc version which does have a smp_wmb in vdso_init right before the vdso_ready=1 assignment. s390 has no need for that.

---

Untested.

 arch/s390/kernel/vdso.c | 2 --
 1 file changed, 2 deletions(-)
arch/s390/kernel/vdso.c +0 -0
index 59eddb0..a1cfd37 100644

arch/s390/kernel/vdso.c static int __init vdso_init(void) · line 304

Quoted 8 lines
arch/s390/kernel/vdso.c +0 -2
@@ -299,8 +299,6 @@ static int __init vdso_init(void)
 
 	get_page(virt_to_page(vdso_data));
 
-	smp_mb();
-
 	return 0;
 }
 early_initcall(vdso_init);

applied to the s390 tree.
Thanks.