From: marcandre.lureau@redhat.com
To: qemu-devel@nongnu.org
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
n.nikolaev@virtualopensystems.com, mst@redhat.com
Subject: [Qemu-devel] [PATCH 1/2] vhost-user: release chardev on cleanup
Date: Wed, 6 Apr 2016 17:38:47 +0200 [thread overview]
Message-ID: <1459957128-17685-2-git-send-email-marcandre.lureau@redhat.com> (raw)
In-Reply-To: <1459957128-17685-1-git-send-email-marcandre.lureau@redhat.com>
From: Marc-André Lureau <marcandre.lureau@redhat.com>
On init, vhost-user does qemu_chr_fe_claim_no_fail(). Do the opposite on
cleanup to allow removing or reusing the chardev.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
net/vhost-user.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/vhost-user.c b/net/vhost-user.c
index 1b9e73a..29fe097 100644
--- a/net/vhost-user.c
+++ b/net/vhost-user.c
@@ -142,6 +142,8 @@ static void vhost_user_cleanup(NetClientState *nc)
}
qemu_purge_queued_packets(nc);
+
+ qemu_chr_fe_release(s->chr);
}
static bool vhost_user_has_vnet_hdr(NetClientState *nc)
--
2.5.5
next prev parent reply other threads:[~2016-04-06 15:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-06 15:38 [Qemu-devel] [PATCH 0/2] vhost-user: release chardev on cleanup marcandre.lureau
2016-04-06 15:38 ` marcandre.lureau [this message]
2016-04-06 15:38 ` [Qemu-devel] [PATCH 2/2] vhost-user: delete " marcandre.lureau
2016-06-16 9:05 ` [Qemu-devel] [PATCH 0/2] vhost-user: release " Marc-André Lureau
2016-08-11 9:16 ` Marc-André Lureau
2016-09-27 11:44 ` Marc-André Lureau
2017-01-10 16:35 ` Marc-André Lureau
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1459957128-17685-2-git-send-email-marcandre.lureau@redhat.com \
--to=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=n.nikolaev@virtualopensystems.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).