Skip to content

Commit a5db74f

Browse files
committed
block/nvme: clarify that free_req_queue is protected by q->lock
Existing users access free_req_queue under q->lock. Document this. Signed-off-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Sergio Lopez <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-id: [email protected] Signed-off-by: Stefan Hajnoczi <[email protected]>
1 parent 1086e95 commit a5db74f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/nvme.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ typedef struct {
5757
} NVMeRequest;
5858

5959
typedef struct {
60-
CoQueue free_req_queue;
6160
QemuMutex lock;
6261

6362
/* Fields protected by BQL */
6463
int index;
6564
uint8_t *prp_list_pages;
6665

6766
/* Fields protected by @lock */
67+
CoQueue free_req_queue;
6868
NVMeQueue sq, cq;
6969
int cq_phase;
7070
int free_req_head;

0 commit comments

Comments
 (0)