• J
    rpc: Avoid deadlock when closing client connection · 921af429
    Jiri Denemark 提交于
    We need to drop the server lock before calling virObjectUnlock(client)
    since in case we had the last reference to the client, its dispose
    callback would be called and that could possibly try to lock the server
    and cause a deadlock. This is exactly what happens when there is only
    one QEMU domain running and it is marked to be autodestroyed when the
    connection dies. This results in qemuProcessAutoDestroy ->
    qemuProcessStop -> virNetServerRemoveShutdownInhibition call sequence,
    where the last function locks the server.
    921af429
virnetserver.c 34.9 KB