nbd: Mark nbd_co_do_establish_connection() and callers GRAPH_RDLOCK
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>
Thu, 4 May 2023 11:57:40 +0000 (13:57 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 May 2023 12:16:53 +0000 (14:16 +0200)
commit69aa0d371f67b1c042ed4f3ff4a481d561b54d21
tree3b3c5f7e4d4463b18e8530828e0131361f28d114
parent5d934513f8ca21f48709103991099c25f7bf9f6c
nbd: Mark nbd_co_do_establish_connection() and callers GRAPH_RDLOCK

This adds GRAPH_RDLOCK annotations to declare that callers of
nbd_co_do_establish_connection() need to hold a reader lock for the
graph.

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20230504115750.54437-11-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/coroutines.h
block/nbd.c