OSDN Git Service

Revert "net: vhost: lock the vqs one by one"
authorJason Wang <jasowang@redhat.com>
Thu, 13 Dec 2018 02:53:39 +0000 (10:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Dec 2018 05:56:20 +0000 (21:56 -0800)
commit86a07da34380bc9467fa407dc3e484488a8ad40d
tree8a74a22f5a49637ccb667d0350fd6566871026cc
parent476e8ba712fa6a479192dfc4301cd3765d9ba713
Revert "net: vhost: lock the vqs one by one"

This reverts commit 78139c94dc8c96a478e67dab3bee84dc6eccb5fd. We don't
protect device IOTLB with vq mutex, which will lead e.g use after free
for device IOTLB entries. And since we've switched to use
mutex_trylock() in previous patch, it's safe to revert it without
having deadlock.

Fixes: commit 78139c94dc8c ("net: vhost: lock the vqs one by one")
Cc: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/vhost.c