aboutsummaryrefslogtreecommitdiffstats
path: root/LICENSES
diff options
context:
space:
mode:
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>2018-11-30 16:05:53 +0000
committerDavid S. Miller <davem@davemloft.net>2018-12-03 15:52:30 -0800
commite3f787189e10f5fafce77ba8aa948741ebb93c2b (patch)
tree44b0e172af8f8621f15351aa2307642ba6fe25cf /LICENSES
parentMerge branch 'phy-micrel-toggling-reset' (diff)
downloadlinux-dev-e3f787189e10f5fafce77ba8aa948741ebb93c2b.tar.xz
linux-dev-e3f787189e10f5fafce77ba8aa948741ebb93c2b.zip
vhost: fix IOTLB locking
Commit 78139c94dc8c ("net: vhost: lock the vqs one by one") moved the vq lock to improve scalability, but introduced a possible deadlock in vhost-iotlb. vhost_iotlb_notify_vq() now takes vq->mutex while holding the device's IOTLB spinlock. And on the vhost_iotlb_miss() path, the spinlock is taken while holding vq->mutex. Since calling vhost_poll_queue() doesn't require any lock, avoid the deadlock by not taking vq->mutex. Fixes: 78139c94dc8c ("net: vhost: lock the vqs one by one") Acked-by: Jason Wang <jasowang@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions