qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3] vhost-user: delay vhost_user_stop


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v3] vhost-user: delay vhost_user_stop
Date: Tue, 28 Feb 2017 19:51:47 +0000

On 27 February 2017 at 10:49, Marc-André Lureau
<address@hidden> wrote:
> 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 <address@hidden>
> ---
> v3:
>  - use aio_bh_schedule_oneshot(), as suggest by Paolo
> v2:
>  - fix reconnect race

Applied to master as a buildfix (I haven't seen the test failures
but others on IRC were complaining).

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]