Netdev Archive on
help / color / mirror / Atom feed
From: Zhu Lingshan <>
	Zhu Lingshan <>
Subject: [PATCH 0/2] fix dead lock issues in vhost_vdpa
Date: Mon,  7 Sep 2020 18:52:18 +0800	[thread overview]
Message-ID: <> (raw)

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

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(-)


             reply	other threads:[~2020-09-07 10:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-07 10:52 Zhu Lingshan [this message]
2020-09-07 10:52 ` [PATCH 1/2] vhost: remove mutex ops in vhost_set_backend_features Zhu Lingshan
2020-09-08 12:05   ` Michael S. Tsirkin
     [not found]     ` <>
2020-09-21 12:35       ` Michael S. Tsirkin
2020-09-07 10:52 ` [PATCH 2/2] vhost_net: introduce vhost_net_set_backend_features() Zhu Lingshan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \
    --subject='Re: [PATCH 0/2] fix dead lock issues in vhost_vdpa' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).