]> git.baikalelectronics.ru Git - kernel.git/commit
ptr_ring: Remove now-redundant smp_read_barrier_depends()
authorAndrea Parri <parri.andrea@gmail.com>
Fri, 16 Feb 2018 11:06:13 +0000 (12:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Feb 2018 16:11:16 +0000 (11:11 -0500)
commited2ba3c6e787c7e865496f5a08a72b93308e3f47
tree6975ad4371c3284e54919d92e98a935a8111d699
parentf628d0a7ca2fbd5430ec37c58561240796fa890b
ptr_ring: Remove now-redundant smp_read_barrier_depends()

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 <parri.andrea@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: <linux-kernel@vger.kernel.org>
Cc: <netdev@vger.kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ptr_ring.h