graph-lock: Fix GRAPH_RDLOCK_GUARD*() to be reader lock
commit4ee1f854ecbe81492e913bd7699091266992fee7
authorKevin Wolf <kwolf@redhat.com>
Thu, 4 May 2023 11:57:37 +0000 (4 13:57 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 May 2023 12:16:53 +0000 (10 14:16 +0200)
tree6110b52c540d73740e495844d633ba9093894828
parentd51c349b642d2c50611085db521cf31f5f985488
graph-lock: Fix GRAPH_RDLOCK_GUARD*() to be reader lock

GRAPH_RDLOCK_GUARD() and GRAPH_RDLOCK_GUARD_MAINLOOP() only take a
reader lock for the graph, so the correct annotation for them to use is
TSA_ASSERT_SHARED rather than TSA_ASSERT.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20230504115750.54437-8-kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/block/graph-lock.h