commit | a259df36d1fbf25f0e4f649fdb84e4527e5640ed | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Fri Jan 26 01:36:29 2018 +0200 |
committer | David S. Miller <davem@davemloft.net> | Mon Jan 29 12:02:53 2018 -0500 |
tree | a5a2c6d057c491dc2235cd443e1bf7a6823d74b2 | |
parent | 8619d384eb5e9256a9d4ebe96c1832ac9b9049d6 [diff] |
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>