vhost: do not take lock on owner reset
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 12 Feb 2018 15:46:12 +0000 (16:46 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 13 Feb 2018 17:58:02 +0000 (18:58 +0100)
commit9fce5d0b401fc2c13a860bbbfdebcf85080334e1
tree46568ef49046b681496c89950c291d1894acaa99
parent478574706638ff78cbc7e82731a4eae743322ac6
vhost: do not take lock on owner reset

A deadlock happens when handling VHOST_USER_RESET_OWNER request
for the same reason the lock is not taken for
VHOST_USER_GET_VRING_BASE.

It is safe not to take the lock, as the queues are no more used
by the application when the virtqueues and the device are reset.

Fixes: a3688046995f ("vhost: protect active rings from async ring changes")
Cc: stable@dpdk.org
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
lib/librte_vhost/vhost_user.c