Re: [Qemu-devel] [PATCH v4 0/2] char-socket: Fix race condition

2019-08-21 Thread Andrey Shinkevich
On 21/08/2019 11:18, Paolo Bonzini wrote: > On 12/08/19 17:58, Andrey Shinkevich wrote: >> This fixes a race condition in which the tcp_chr_read() ioc handler >> can close a connection that is being written to from another thread. >> >> v4: >> The functions qemu_idle_add() and tcp_chr_be_eve

Re: [Qemu-devel] [PATCH v4 0/2] char-socket: Fix race condition

2019-08-21 Thread Paolo Bonzini
On 12/08/19 17:58, Andrey Shinkevich wrote: > This fixes a race condition in which the tcp_chr_read() ioc handler > can close a connection that is being written to from another thread. > > v4: > The functions qemu_idle_add() and tcp_chr_be_event_closed() were removed > because the callback

[Qemu-devel] [PATCH v4 0/2] char-socket: Fix race condition

2019-08-12 Thread Andrey Shinkevich
This fixes a race condition in which the tcp_chr_read() ioc handler can close a connection that is being written to from another thread. v4: The functions qemu_idle_add() and tcp_chr_be_event_closed() were removed because the callback is invoked after the call to object_property_del_all()