aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tap.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2018-01-26 01:36:29 +0200
committerDavid S. Miller <davem@davemloft.net>2018-01-29 12:02:53 -0500
commita259df36d1fbf25f0e4f649fdb84e4527e5640ed (patch)
treea5a2c6d057c491dc2235cd443e1bf7a6823d74b2 /drivers/net/tap.c
parentptr_ring: clean up documentation (diff)
downloadlinux-dev-a259df36d1fbf25f0e4f649fdb84e4527e5640ed.tar.xz
linux-dev-a259df36d1fbf25f0e4f649fdb84e4527e5640ed.zip
ptr_ring: READ/WRITE_ONCE for __ptr_ring_empty
Lockless __ptr_ring_empty requires that consumer head is read and written at once, atomically. Annotate accordingly to make sure compiler does it correctly. Switch locked callers to __ptr_ring_peek which does not support the lockless operation. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tap.c')
0 files changed, 0 insertions, 0 deletions