Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1602612
| From | Peter Zijlstra <peterz@infradead.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] kthread: add barriers to set_kthread_struct() and to_kthread() |
| Date | 2017-03-16 17:20 +0100 |
| Message-ID | <tlGi6-RT-19@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <tlF2H-8g9-19@gated-at.bofh.it> <tlFFo-lI-7@gated-at.bofh.it> <tlFFo-lI-5@gated-at.bofh.it> <tlFYK-td-31@gated-at.bofh.it> <tlGi6-RT-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Mar 16, 2017 at 12:09:44PM -0400, Tejun Heo wrote:
> On Thu, Mar 16, 2017 at 04:55:34PM +0100, Peter Zijlstra wrote:
> > > Oops, as for adding lockless_assign_pointer(), wouldn't smp_wmb() be a
> > > better match for smp_read_barrier_depends()? ISTR acquire/release
> > > pairs being more expensive on some archs.
> >
> > 88c1863066cc ("rcu: Define rcu_assign_pointer() in terms of smp_store_release()")
>
> Hmmm, nice, can we always prefer store_release over wmb from now on?
I would advocate using whichever barrier is most natural for the
occasion.
Only if there really is a very very compelling performance argument
should we look further.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] kthread: add barriers to set_kthread_struct() and to_kthread() Tejun Heo <tj@kernel.org> - 2017-03-16 00:20 +0100
Re: [PATCH 1/2] kthread: add barriers to set_kthread_struct() and to_kthread() Oleg Nesterov <oleg@redhat.com> - 2017-03-16 16:00 +0100
Re: [PATCH 1/2] kthread: add barriers to set_kthread_struct() and to_kthread() Tejun Heo <tj@kernel.org> - 2017-03-16 16:40 +0100
Re: [PATCH 1/2] kthread: add barriers to set_kthread_struct() and to_kthread() Oleg Nesterov <oleg@redhat.com> - 2017-03-16 16:50 +0100
Re: [PATCH 1/2] kthread: add barriers to set_kthread_struct() and to_kthread() Peter Zijlstra <peterz@infradead.org> - 2017-03-16 17:00 +0100
Re: [PATCH 1/2] kthread: add barriers to set_kthread_struct() and to_kthread() Peter Zijlstra <peterz@infradead.org> - 2017-03-16 17:20 +0100
Re: [PATCH 1/2] kthread: add barriers to set_kthread_struct() and to_kthread() Tejun Heo <tj@kernel.org> - 2017-03-16 17:20 +0100
Re: [PATCH 1/2] kthread: add barriers to set_kthread_struct() and to_kthread() Tejun Heo <tj@kernel.org> - 2017-03-16 16:40 +0100
csiph-web