]> git.proxmox.com Git - mirror_qemu.git/commit
monitor: protect mon->fds with mon_lock
authorPeter Xu <peterx@redhat.com>
Fri, 8 Jun 2018 03:55:06 +0000 (11:55 +0800)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 18 Jun 2018 13:45:28 +0000 (15:45 +0200)
commit9409fc05fe2cec3c54bb04b133ea9e3df35073cd
treeb46ef08e58870daf4a7ac724351210a20378b5e7
parentdc7cbcd8fae9b94b453f3a04298d52a69c228b4d
monitor: protect mon->fds with mon_lock

mon->fds were protected by BQL.  Now protect it by mon_lock so that it
can even be used in monitor iothread.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180608035511.7439-3-peterx@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
monitor.c