Re: [PATCH 5/8] virtio-blk: mark GLOBAL_STATE_CODE functions

2022-07-05 Thread Stefan Hajnoczi
On Thu, Jun 09, 2022 at 10:37:24AM -0400, Emanuele Giuseppe Esposito wrote: > Just as done in the block API, mark functions in virtio-blk > that are always called in the main loop with BQL held. > > We know such functions are GS because they all are callbacks > from virtio.c API that has already

[PATCH 5/8] virtio-blk: mark GLOBAL_STATE_CODE functions

2022-06-09 Thread Emanuele Giuseppe Esposito
Just as done in the block API, mark functions in virtio-blk that are always called in the main loop with BQL held. We know such functions are GS because they all are callbacks from virtio.c API that has already classified them as GS. Signed-off-by: Emanuele Giuseppe Esposito ---