Re: [Qemu-devel] [PATCH v9 7/7] monitor: add lock to protect mon_fdsets

2018-06-07 Thread Markus Armbruster
Peter Xu writes: > Introduce a new global big lock for mon_fdsets. Take it where needed. > > The monitor_fdset_get_fd() handling is a bit tricky: now we need to call > qemu_mutex_unlock() which might pollute errno, so we need to make sure > the correct errno be passed up to the callers. To make

Re: [Qemu-devel] [PATCH v9 7/7] monitor: add lock to protect mon_fdsets

2018-05-30 Thread Stefan Hajnoczi
On Tue, May 29, 2018 at 01:57:55PM +0800, Peter Xu wrote: > Introduce a new global big lock for mon_fdsets. Take it where needed. > > The monitor_fdset_get_fd() handling is a bit tricky: now we need to call > qemu_mutex_unlock() which might pollute errno, so we need to make sure > the correct err

[Qemu-devel] [PATCH v9 7/7] monitor: add lock to protect mon_fdsets

2018-05-28 Thread Peter Xu
Introduce a new global big lock for mon_fdsets. Take it where needed. The monitor_fdset_get_fd() handling is a bit tricky: now we need to call qemu_mutex_unlock() which might pollute errno, so we need to make sure the correct errno be passed up to the callers. To make things simpler, we let moni