Skip to content

fix dead lock issues in vhost_vdpa

Zhu Lingshan kvm netdev virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vhost: remove mutex ops in vhost_set_backend_featuresdrivers/vhost/vhost.c+0 -22 replies
2/2vhost_net: introduce vhost_net_set_backend_features()drivers/vhost/net.c+8 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] fix dead lock issues in vhost_vdpa

This series fixed a dead lock issue in vhost_vdpa. In current vhost_vdpa ioctl code path, it will lock vhost_dev mutex once, then try to re-lock it in vhost_set_backend_features, which is buggy.

These commits will remove mutex locks operations in vhost_set_backend_features, then as a compensation, a new function vhost_net_set_backend_features() in vhost_net is introduced to do proper mutex locking and call vhost_set_backend_features()

Please help review. Thanks!

Zhu Lingshan (2):
vhost: remove mutex ops in vhost_set_backend_features
vhost_net: introduce vhost_net_set_backend_features()

 drivers/vhost/net.c   | 9 ++++++++-
 drivers/vhost/vhost.c | 2 --
 2 files changed, 8 insertions(+), 3 deletions(-)
Signature · 1 line
2.18.4