nbd: document what is protected by the CoMutexes
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20220414175756.671165-10-pbonzini@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Lukas Straub <lukasstraub2@web.de> Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
a80a9a1c73
commit
620c5cb5da
@ -81,12 +81,18 @@ typedef struct BDRVNBDState {
|
||||
NBDClientRequest requests[MAX_NBD_REQUESTS];
|
||||
QEMUTimer *reconnect_delay_timer;
|
||||
|
||||
/* Protects sending data on the socket. */
|
||||
CoMutex send_mutex;
|
||||
|
||||
/*
|
||||
* Protects receiving reply headers from the socket, as well as the
|
||||
* fields reply and requests[].receiving
|
||||
*/
|
||||
CoMutex receive_mutex;
|
||||
NBDReply reply;
|
||||
|
||||
QEMUTimer *open_timer;
|
||||
|
||||
NBDReply reply;
|
||||
BlockDriverState *bs;
|
||||
|
||||
/* Connection parameters */
|
||||
|
Loading…
Reference in New Issue
Block a user