]> git.proxmox.com Git - mirror_qemu.git/commit
vhost-user: delay vhost_user_stop
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 27 Feb 2017 10:49:56 +0000 (14:49 +0400)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Feb 2017 19:11:15 +0000 (19:11 +0000)
commite7c83a885f865128ae3cf1946f8cb538b63cbfba
tree523ba5a2db3867e108809e17f7805040e3f2a21b
parent9514f2648ca05b38e852b490a12b8cd98d5808c1
vhost-user: delay vhost_user_stop

Since commit b0a335e351103bf92f3f9d0bd5759311be8156ac, a socket write
may trigger a disconnect events, calling vhost_user_stop() and clearing
all the vhost_dev strutures holding data that vhost.c functions expect
to remain valid. Delay the cleanup to keep the vhost_dev structure
valid during the vhost.c functions.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20170227104956.24729-1-marcandre.lureau@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
net/vhost-user.c