Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
scsi: remove outdated AioContext lock comment
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>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
  • Loading branch information
Stefan Hajnoczi authored and Kevin Wolf committed Dec 21, 2023
1 parent e0444c2 commit e7fc3c4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hw/scsi/scsi-disk.c
Expand Up @@ -355,7 +355,6 @@ static void scsi_dma_complete_noio(SCSIDiskReq *r, int ret)
scsi_req_unref(&r->req);
}

/* Called with AioContext lock held */
static void scsi_dma_complete(void *opaque, int ret)
{
SCSIDiskReq *r = (SCSIDiskReq *)opaque;
Expand Down

0 comments on commit e7fc3c4

Please sign in to comment.