Thread (1 message) 1 message, 1 author, 2019-08-22

Re: [PATCH bpf-next 1/4] xsk: avoid store-tearing when assigning queues

From: Björn Töpel <hidden>
Date: 2019-08-22 13:51:20
Also in: bpf

On Thu, 22 Aug 2019 at 15:26, Hillf Danton [off-list ref] wrote:
quoted
quoted
   /* Make sure queue is ready before it can be seen by others */
quoted
   smp_wmb();


Hehe, who put mb here and for what?
That was from an earlier commit, and it's a barrier paired with the
lock-less reading of queues in xsk_mmap. Uhm... not sure I answered
your question?


Björn



quoted
-   *queue = q;
quoted
+  WRITE_ONCE(*queue, q);
quoted
   return 0;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help