BpfRingbuf: Clean up memory access

Consumer pos is only written to by userspace (except for
initialization), so reading from it does not require a memory barrier.

This change also moves producer pos to be acquired before anything else
and marks start_ptr as volatile, so it is only read once.

Test: atest BpfRingbufTest
Change-Id: I228578ef4b42c1732646f0ae928b9a0aa2445304
1 file changed
tree: c5ef5e9c8d05796479cb11850a4724b699076964
  1. staticlibs/