Re: memory barrier in counters_zero

2022-09-25 Thread Jonathan Matthew
On Sat, Sep 17, 2022 at 04:28:15PM +0200, Alexander Bluhm wrote: > Hi, > > Inspired by Taylor's talk at EuroBSDCon I think a memory barrier > in counters_zero() is missing. Reading uses two consumer barriers, > so writing should also have two. Will slides or notes from this

Re: memory barrier in counters_zero

2022-09-23 Thread Alexander Bluhm
Anyone? On Sat, Sep 17, 2022 at 04:28:15PM +0200, Alexander Bluhm wrote: > Hi, > > Inspired by Taylor's talk at EuroBSDCon I think a memory barrier > in counters_zero() is missing. Reading uses two consumer barriers, > so writing should also have two. > > Following

memory barrier in counters_zero

2022-09-17 Thread Alexander Bluhm
Hi, Inspired by Taylor's talk at EuroBSDCon I think a memory barrier in counters_zero() is missing. Reading uses two consumer barriers, so writing should also have two. Following code would have no barrier between writing generation number and writing counters. counters_leave(); counters