]> xenbits.xensource.com Git - people/aperard/qemu-dm.git/commitdiff
scsi: remove outdated AioContext lock comment
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 5 Dec 2023 18:20:09 +0000 (13:20 -0500)
committerAnthony PERARD <anthony.perard@citrix.com>
Wed, 6 Dec 2023 12:12:54 +0000 (12:12 +0000)
The SCSI subsystem no longer uses the AioContext lock. Request
processing runs exclusively in the BlockBackend's AioContext since
"scsi: only access SCSIDevice->requests from one thread" and hence the
lock is unnecessary.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20231205182011.1976568-13-stefanha@redhat.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
hw/scsi/scsi-disk.c

index 61be3d395ae793c6a579d80c30ca90522715de12..2e7e1e9a1ce896ca0c9cf9e09a23ad5dedc6110b 100644 (file)
@@ -355,7 +355,6 @@ done:
     scsi_req_unref(&r->req);
 }
 
-/* Called with AioContext lock held */
 static void scsi_dma_complete(void *opaque, int ret)
 {
     SCSIDiskReq *r = (SCSIDiskReq *)opaque;