]> git.ipfire.org Git - thirdparty/qemu.git/commit
scsi: introduce requests_lock
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 11 Mar 2025 13:26:07 +0000 (21:26 +0800)
committerKevin Wolf <kwolf@redhat.com>
Thu, 13 Mar 2025 16:57:23 +0000 (17:57 +0100)
commit1cf18cc9bf5e9f88ad92f89886652e0361e2f41f
treef5110b1b76a0380761a0474430b068440ab91045
parent7eecba37788f48d34c015954f1207cc7b52728f5
scsi: introduce requests_lock

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 <stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20250311132616.1049687-5-stefanha@redhat.com>
Tested-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi/scsi-bus.c
include/hw/scsi/scsi.h