[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]