]> git.ipfire.org Git - thirdparty/qemu.git/commit - meson.build
block: compile out assert_bdrv_graph_readable() by default
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 1 May 2023 17:34:43 +0000 (13:34 -0400)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 May 2023 12:16:54 +0000 (14:16 +0200)
commit58a2e3f5c37be02dac3086b81bdda9414b931edf
treec7d848ec1ee79f0b784decade1800867e67f0315
parente19b157f3c66c44e3b89cb50a2030f0187b968e9
block: compile out assert_bdrv_graph_readable() by default

reader_count() is a performance bottleneck because the global
aio_context_list_lock mutex causes thread contention. Put this debugging
assertion behind a new ./configure --enable-debug-graph-lock option and
disable it by default.

The --enable-debug-graph-lock option is also enabled by the more general
--enable-debug option.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20230501173443.153062-1-stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/graph-lock.c
configure
meson.build
meson_options.txt
scripts/meson-buildoptions.sh