Skip to contentSkip to conversation

smp_read_barrier_depends() into READ_ONCE()

DISCUSSION Yubin Ruan 2 participants 4 messages Mar 4, 2018

lore
Share & tools
lore

Yubin Ruan

author
#0 lore raw

Hi paul,

Please provide the commit link/hash for the changes of smp_read_barrier_depends() in the kernel. I remember that it was post by Akira once on the mailing list, but not sure I can get the right one.

Thanks,
Yubin

Signature · 1 line
Yubin Ruan <http://fastdrivers.org>
#1 lore raw
Quoted 9 lines · Yubin Ruan

Hi paul,

Please provide the commit link/hash for the changes of smp_read_barrier_depends() in the kernel. I remember that it was post by Akira once on the mailing list, but not sure I can get the right one.

Thanks,
Yubin

Hi Yubin,

It's 76ebbe78f739 ("locking/barriers: Add implicit smp_read_barrier_depends() to READ_ONCE()").

Thanks, Akira

#2 lore raw
Quoted 7 lines · Akira Yokosawa
Quoted 6 lines · Yubin Ruan

Hi paul,

Please provide the commit link/hash for the changes of smp_read_barrier_depends() in the kernel. I remember that it was post by Akira once on the mailing list, but not sure I can get the right one.

Quoted 8 lines
Quoted 3 lines

Thanks,
Yubin

Hi Yubin,

It's 76ebbe78f739 ("locking/barriers: Add implicit smp_read_barrier_depends() to READ_ONCE()").

FWIW, it was cherry-picked into x86-pti branch as commit c2bc66082e10, which was also merged in merge-commit f8940a0f20eb ("Merge branch 'WIP.x86-pti.base-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip").

Thanks, Akira

Quoted 3 lines

Thanks, Akira

author
#3 lore raw
Quoted 12 lines · Akira Yokosawa
Quoted 11 lines · Akira Yokosawa
Quoted 9 lines · Yubin Ruan

Hi paul,

Please provide the commit link/hash for the changes of smp_read_barrier_depends() in the kernel. I remember that it was post by Akira once on the mailing list, but not sure I can get the right one.

Thanks,
Yubin

Quoted 8 lines
Quoted 4 lines

Hi Yubin,

It's 76ebbe78f739 ("locking/barriers: Add implicit smp_read_barrier_depends() to READ_ONCE()").

FWIW, it was cherry-picked into x86-pti branch as commit c2bc66082e10, which was also merged in merge-commit f8940a0f20eb ("Merge branch 'WIP.x86-pti.base-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip").

Thanks Akira ;-)

Yubin