mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Rename "QEMU global mutex" to "BQL" in comments and docs
The term "QEMU global mutex" is identical to the more widely used Big QEMU Lock ("BQL"). Update the code comments and documentation to use "BQL" instead of "QEMU global mutex". Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Acked-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Paul Durrant <paul@xen.org> Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com> Message-id: 20240102153529.486531-6-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
a4a411fbaf
commit
0b2675c473
12 changed files with 27 additions and 28 deletions
|
@ -84,7 +84,7 @@ apply_vq_mapping(IOThreadVirtQueueMappingList *iothread_vq_mapping_list,
|
|||
}
|
||||
}
|
||||
|
||||
/* Context: QEMU global mutex held */
|
||||
/* Context: BQL held */
|
||||
bool virtio_blk_data_plane_create(VirtIODevice *vdev, VirtIOBlkConf *conf,
|
||||
VirtIOBlockDataPlane **dataplane,
|
||||
Error **errp)
|
||||
|
@ -148,7 +148,7 @@ bool virtio_blk_data_plane_create(VirtIODevice *vdev, VirtIOBlkConf *conf,
|
|||
return true;
|
||||
}
|
||||
|
||||
/* Context: QEMU global mutex held */
|
||||
/* Context: BQL held */
|
||||
void virtio_blk_data_plane_destroy(VirtIOBlockDataPlane *s)
|
||||
{
|
||||
VirtIOBlock *vblk;
|
||||
|
@ -179,7 +179,7 @@ void virtio_blk_data_plane_destroy(VirtIOBlockDataPlane *s)
|
|||
g_free(s);
|
||||
}
|
||||
|
||||
/* Context: QEMU global mutex held */
|
||||
/* Context: BQL held */
|
||||
int virtio_blk_data_plane_start(VirtIODevice *vdev)
|
||||
{
|
||||
VirtIOBlock *vblk = VIRTIO_BLK(vdev);
|
||||
|
@ -310,7 +310,7 @@ static void virtio_blk_data_plane_stop_vq_bh(void *opaque)
|
|||
virtio_queue_host_notifier_read(host_notifier);
|
||||
}
|
||||
|
||||
/* Context: QEMU global mutex held */
|
||||
/* Context: BQL held */
|
||||
void virtio_blk_data_plane_stop(VirtIODevice *vdev)
|
||||
{
|
||||
VirtIOBlock *vblk = VIRTIO_BLK(vdev);
|
||||
|
|
|
@ -1539,7 +1539,7 @@ static void virtio_blk_resize(void *opaque)
|
|||
VirtIODevice *vdev = VIRTIO_DEVICE(opaque);
|
||||
|
||||
/*
|
||||
* virtio_notify_config() needs to acquire the global mutex,
|
||||
* virtio_notify_config() needs to acquire the BQL,
|
||||
* so it can't be called from an iothread. Instead, schedule
|
||||
* it to be run in the main context BH.
|
||||
*/
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "scsi/constants.h"
|
||||
#include "hw/virtio/virtio-bus.h"
|
||||
|
||||
/* Context: QEMU global mutex held */
|
||||
/* Context: BQL held */
|
||||
void virtio_scsi_dataplane_setup(VirtIOSCSI *s, Error **errp)
|
||||
{
|
||||
VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(s);
|
||||
|
@ -93,7 +93,7 @@ static void virtio_scsi_dataplane_stop_bh(void *opaque)
|
|||
}
|
||||
}
|
||||
|
||||
/* Context: QEMU global mutex held */
|
||||
/* Context: BQL held */
|
||||
int virtio_scsi_dataplane_start(VirtIODevice *vdev)
|
||||
{
|
||||
int i;
|
||||
|
@ -185,7 +185,7 @@ fail_guest_notifiers:
|
|||
return -ENOSYS;
|
||||
}
|
||||
|
||||
/* Context: QEMU global mutex held */
|
||||
/* Context: BQL held */
|
||||
void virtio_scsi_dataplane_stop(VirtIODevice *vdev)
|
||||
{
|
||||
BusState *qbus = qdev_get_parent_bus(DEVICE(vdev));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue