[PATCH v3 2/4] vhost: make the guest_notifications statistic counter atomic
Maxime Coquelin
maxime.coquelin at redhat.com
Tue May 30 14:52:40 CEST 2023
On 5/17/23 11:08, Eelco Chaudron wrote:
> Making the guest_notifications statistic counter atomic, allows
> it to be safely incremented while holding the read access_lock.
>
> Signed-off-by: Eelco Chaudron <echaudro at redhat.com>
> ---
> lib/vhost/vhost.c | 8 ++++++++
> lib/vhost/vhost.h | 9 ++++++---
> 2 files changed, 14 insertions(+), 3 deletions(-)
>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list