scsi: assert that callbacks run in the correct AioContext
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 5 Dec 2023 18:19:59 +0000 (13:19 -0500)
committerKevin Wolf <kwolf@redhat.com>
Thu, 21 Dec 2023 21:49:27 +0000 (22:49 +0100)
commit10bcb0d996634aec642b000f05a72c93b652b2e6
tree2c769c658123367ad61a229ac85e12c0c33df8ee
parented18b1ed4f34888872b5fbc2f217c65d62c95cfd
scsi: assert that callbacks run in the correct AioContext

Since the removal of AioContext locking, the correctness of the code
relies on running requests from a single AioContext at any given time.

Add assertions that verify that callbacks are invoked in the correct
AioContext.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20231205182011.1976568-3-stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi/scsi-disk.c
system/dma-helpers.c