Am 13.02.2025 um 19:00 hat Stefan Hajnoczi geschrieben: > SCSIDevice keeps track of in-flight requests for device reset and Task > Management Functions (TMFs). The request list requires protection so > that multi-threaded SCSI emulation can be implemented in commits that > follow. > > Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>
Some of this feels quite heavy-handed, and I imagine that having to take the lock in every request could cause considerable lock contention only so that we can iterate all requests in a slow path. This works for now, but maybe in the long run, we want to teach the SCSI layer about (virt)queues, and have a separate request list per queue (= AioContext)? Kevin