Re: [dpdk-dev] [PATCH v4 4/4] vhost: fix async unregister deadlock

2020-10-14 Thread Maxime Coquelin
On 10/13/20 3:45 AM, Patrick Fu wrote: > When async unregister function is invoked in certain vhost event > callbacks (e.g. vring state change), deadlock may occur due to > recursive spinlock acquire. This patch uses trylock() primitive in > the unregister API to avoid deadlock. > > Fixes: 7863

[dpdk-dev] [PATCH v4 4/4] vhost: fix async unregister deadlock

2020-10-12 Thread Patrick Fu
When async unregister function is invoked in certain vhost event callbacks (e.g. vring state change), deadlock may occur due to recursive spinlock acquire. This patch uses trylock() primitive in the unregister API to avoid deadlock. Fixes: 78639d54563a ("vhost: introduce async enqueue registration