]> git.baikalelectronics.ru Git - kernel.git/commit
net: vhost: lock the vqs one by one
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Tue, 25 Sep 2018 12:36:49 +0000 (05:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Sep 2018 03:25:54 +0000 (20:25 -0700)
commit6ecc039be5f70f01932c56e6219f3118f86a5930
tree234738bd1ed26c48485efea826d6d5dc3ddc7419
parentf4ab5d1e486fc5b63a58653c4178e117c7b53eb2
net: vhost: lock the vqs one by one

This patch changes the way that lock all vqs
at the same, to lock them one by one. It will
be used for next patch to avoid the deadlock.

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/vhost.c