Stefan Hajnoczi ed18b1ed4f virtio-scsi: replace AioContext lock with tmf_bh_lock
Protect the Task Management Function BH state with a lock. The TMF BH
runs in the main loop thread. An IOThread might process a TMF at the
same time as the TMF BH is running. Therefore tmf_bh_list and tmf_bh
must be protected by a lock.

Run TMF request completion in the IOThread using aio_wait_bh_oneshot().
This avoids more locking to protect the virtqueue and SCSI layer state.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20231205182011.1976568-2-stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2023-12-21 22:49:27 +01:00
..
2023-10-23 14:45:29 -07:00
2023-10-18 10:10:49 +02:00
2023-11-07 13:08:49 +01:00
2023-12-20 10:29:23 +01:00
2023-12-20 09:40:16 -05:00
2023-09-08 13:08:52 +03:00
2023-11-08 20:35:00 +08:00
2023-09-08 13:08:52 +03:00
2023-12-20 10:29:23 +01:00
2023-09-08 13:08:52 +03:00
2023-03-20 12:43:50 +01:00