OSDN Git Service

scsi-disk: Acquire the AioContext in scsi_*_realize()
authorAlberto Garcia <berto@igalia.com>
Tue, 22 Jan 2019 15:53:22 +0000 (17:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 1 Feb 2019 12:46:45 +0000 (13:46 +0100)
commit3ff35ba391134e4e43ab96152deb38a62e62f858
treeceba43aca7e2477bb803b8252f10be9263e348d0
parenta6f230c8d13a7ff3a0c7f1097412f44bfd9eff0b
scsi-disk: Acquire the AioContext in scsi_*_realize()

This fixes a crash when attaching two disks with the same blockdev to
a SCSI device that is using iothreads. Test case included.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi/scsi-disk.c
tests/qemu-iotests/240
tests/qemu-iotests/240.out