On 8/19/19 1:34 PM, Tiwei Bie wrote:
> When the device has been started, don't do the reallocation anymore.
> Otherwise the pointers used in application threads can be invalidated
> without proper protection. Instead of introducing a global lock to
> protect the change of device pointers which will hurt the performance,
> let's just do the reallocation during setup.
> 
> Fixes: af295ad4698c ("vhost: realloc device and queues to same numa node as 
> vring desc")
> Cc: sta...@dpdk.org
> 
> Reported-by: Yinan Wang <yinan.w...@intel.com>
> Signed-off-by: Tiwei Bie <tiwei....@intel.com>
> ---
>  lib/librte_vhost/vhost_user.c | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>

Thanks,
Maxime

Reply via email to