aboutsummaryrefslogtreecommitdiff
path: root/block/graph-lock.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2022-12-07 14:18:34 +0100
committerKevin Wolf <kwolf@redhat.com>2022-12-15 16:08:23 +0100
commit4002ffdc4fa7a2fd9b5a86772311c646a73775f7 (patch)
tree301497e316a2c746903d2c78cf0c3ecc3e31520d /block/graph-lock.c
parent3f35f82e04923affb3283b451b6d66880f266a5a (diff)
graph-lock: TSA annotations for lock/unlock functions
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20221207131838.239125-15-kwolf@redhat.com> Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/graph-lock.c')
-rw-r--r--block/graph-lock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/block/graph-lock.c b/block/graph-lock.c
index c4d9d2c274..454c31e691 100644
--- a/block/graph-lock.c
+++ b/block/graph-lock.c
@@ -24,6 +24,9 @@
#include "block/block.h"
#include "block/block_int.h"
+/* Dummy lock object to use for Thread Safety Analysis (TSA) */
+BdrvGraphLock graph_lock;
+
/* Protects the list of aiocontext and orphaned_reader_count */
static QemuMutex aio_context_list_lock;