]> 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)
commit827c8ca547b26e5b31964d29c5ae79729750c8f8
tree234738bd1ed26c48485efea826d6d5dc3ddc7419
parentb0cbce3c4664e1b5f7e09852800c629f94206181
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