]> git.baikalelectronics.ru Git - kernel.git/commit
net: vhost: replace magic number of lock annotation
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Tue, 25 Sep 2018 12:36:50 +0000 (05:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Sep 2018 03:25:55 +0000 (20:25 -0700)
commit2afe69c30bab6fc00fc9b34d25f3246b0c38b495
tree6a6f2ba71ada9bf34eef5e1c6bd1533f5adae590
parent6ecc039be5f70f01932c56e6219f3118f86a5930
net: vhost: replace magic number of lock annotation

Use the VHOST_NET_VQ_XXX as a subclass for mutex_lock_nested.

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