]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: avoid glib event loop workaround where possible
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 25 Nov 2020 17:59:16 +0000 (17:59 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 26 Nov 2020 13:30:35 +0000 (13:30 +0000)
commit6d69afe4517646811ee96981408bc6fc18b5ffbb
tree57056f4e3b05f02f4fec579fcbd8e3da0d6d7a40
parent829142699ecf1b51e677c6719fce29282af62c92
util: avoid glib event loop workaround where possible

I previously did a workaround for a glib event loop race
that causes crashes:

  commit 0db4743645b7a0611a3c0687f834205c9956f7fc
  Author: Daniel P. Berrangé <berrange@redhat.com>
  Date:   Tue Jul 28 16:52:47 2020 +0100

    util: avoid crash due to race in glib event loop code

it turns out that the workaround has a significant performance
penalty on I/O intensive workloads. We thus need to avoid the
workaround if we know we have a new enough glib to avoid the
race condition.

Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Tested-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/vireventglib.c