[dpdk-dev] [PATCH 2/2] vhost: don't take access_lock on VHOST_USER_RESET_OWNER

Tiwei Bie tiwei.bie at intel.com
Mon Feb 12 10:40:07 CET 2018


On Fri, Feb 09, 2018 at 03:26:54PM +0100, Maxime Coquelin wrote:
> 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 at dpdk.org
> 
> Cc: Victor Kaplansky <victork at redhat.com>
> Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Reviewed-by: Tiwei Bie <tiwei.bie at intel.com>

Thanks for the work!

Best regards,
Tiwei Bie


More information about the dev mailing list