Re: [Qemu-devel] [PATCH v3 2/4] monitor: protect mon->fds with mon_lock

2018-05-02 Thread Peter Xu
On Wed, May 02, 2018 at 03:44:19PM +0800, Peter Xu wrote: > mon->fds were protected by BQL. Now protect it by mon_lock so that it > can even be used in monitor iothread. > > Signed-off-by: Peter Xu > --- > monitor.c | 11 ++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff -

[Qemu-devel] [PATCH v3 2/4] monitor: protect mon->fds with mon_lock

2018-05-02 Thread Peter Xu
mon->fds were protected by BQL. Now protect it by mon_lock so that it can even be used in monitor iothread. Signed-off-by: Peter Xu --- monitor.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/monitor.c b/monitor.c index 48882d28ae..176d3ecc04 100644 --- a/monit