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

2020-10-09 Thread Fu, Patrick
> -Original Message- > From: Maxime Coquelin > Sent: Monday, October 5, 2020 10:26 PM > To: Fu, Patrick ; dev@dpdk.org; Xia, Chenbo > > Cc: Wang, Zhihong ; Jiang, Cheng1 > > Subject: Re: [PATCH v3 4/4] vhost: fix async register/unregister deadlock > > > > On 9/29/20 11:29 AM, Patric

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

2020-10-05 Thread Maxime Coquelin
On 9/29/20 11:29 AM, Patrick Fu wrote: > When async register/unregister function is invoked in certain vhost > event callbacks (e.g. vring state change), deadlock may occur due to > recursive spinlock acquire. This patch removes unnecessary spinlock > from register API and use trylock() primitiv

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

2020-09-29 Thread Patrick Fu
When async register/unregister function is invoked in certain vhost event callbacks (e.g. vring state change), deadlock may occur due to recursive spinlock acquire. This patch removes unnecessary spinlock from register API and use trylock() primitive in the unregister API to avoid deadlock. Fixes: