[libvirt] [PATCH] rpc: Initialize a worker pool for max_workers=0 as well

John Ferlan jferlan at redhat.com
Tue Aug 14 16:19:42 UTC 2018



On 08/07/2018 07:38 AM, Marc Hartmayer wrote:
> Semantically, there is no difference between an uninitialized worker
> pool and an initialized worker pool with zero workers. Let's allow the
> worker pool to be initialized for max_workers=0 as well then which
> makes the API more symmetric and simplifies code. Validity of the
> worker pool is delegated to virThreadPoolGetMaxWorkers instead.
> 
> This patch fixes segmentation faults in
> virNetServerGetThreadPoolParameters and
> virNetServerSetThreadPoolParameters for the case when no worker pool
> is actually initialized (max_workers=0).
> 
> Signed-off-by: Marc Hartmayer <mhartmay at linux.ibm.com>
> ---
>  src/rpc/virnetserver.c | 8 ++------
>  1 file changed, 2 insertions(+), 6 deletions(-)
> 

Had to go refresh my memory on the previous series ;-)...

Reviewed-by: John Ferlan <jferlan at redhat.com>

John

(and pushed)




More information about the libvir-list mailing list