Re: [PATCH] ptr_ring: Remove now-redundant smp_read_barrier_depends()

2018-02-19 Thread David Miller
From: Andrea Parri Date: Fri, 16 Feb 2018 12:06:13 +0100 > Because READ_ONCE() now implies smp_read_barrier_depends(), the > smp_read_barrier_depends() in __ptr_ring_consume() is redundant; > this commit removes it and updates the comments. > > Signed-off-by: Andrea Parri Ok, if READ_ONCE() do

[PATCH] ptr_ring: Remove now-redundant smp_read_barrier_depends()

2018-02-16 Thread Andrea Parri
Because READ_ONCE() now implies smp_read_barrier_depends(), the smp_read_barrier_depends() in __ptr_ring_consume() is redundant; this commit removes it and updates the comments. Signed-off-by: Andrea Parri Cc: "David S. Miller" Cc: "Michael S. Tsirkin" Cc: Jason Wang Cc: John Fastabend Cc: Er