[libvirt] [PATCH] qemu: Use atomic ops for driver->nactive

Michal Privoznik mprivozn at redhat.com
Tue Feb 19 14:13:44 UTC 2013


On 19.02.2013 14:58, Jiri Denemark wrote:
> ---
>  src/qemu/qemu_conf.h    |  2 +-
>  src/qemu/qemu_process.c | 13 +++++--------
>  2 files changed, 6 insertions(+), 9 deletions(-)
> 
> diff --git a/src/qemu/qemu_conf.h b/src/qemu/qemu_conf.h
> index b5a3281..a6bd527 100644
> --- a/src/qemu/qemu_conf.h
> +++ b/src/qemu/qemu_conf.h
> @@ -168,7 +168,7 @@ struct _virQEMUDriver {
>      virCgroupPtr cgroup;
>  
>      /* Atomic inc/dec only */
> -    size_t nactive;
> +    unsigned int nactive;

Hopefully nobody gets an overflow here.

ACK

Michal




More information about the libvir-list mailing list