On Wed, May 09, 2018 at 12:17:32PM +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.
Only monitor_get_fd() can safely be called from the monitor iothread (oob). The other functions call close(2), which may block, and therefore aren't allowed in oob code. Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature