Re: [PATCH] call_rcu: stop using mb_set/mb_read

2023-05-01 Thread Richard Henderson
On 4/30/23 12:25, Paolo Bonzini wrote: Use a store-release when enqueuing a new call_rcu, and a load-acquire when dequeuing; and read the tail after checking that node->next is consistent, which is the standard message passing pattern and it is clearer than mb_read/mb_set. Signed-off-by: Paolo B

[PATCH] call_rcu: stop using mb_set/mb_read

2023-04-30 Thread Paolo Bonzini
Use a store-release when enqueuing a new call_rcu, and a load-acquire when dequeuing; and read the tail after checking that node->next is consistent, which is the standard message passing pattern and it is clearer than mb_read/mb_set. Signed-off-by: Paolo Bonzini --- util/rcu.c | 38