Skip to content
Commit 4f71fb43 authored by Kevin Wolf's avatar Kevin Wolf
Browse files

scsi-disk: Use qdev_prop_drive_iothread



This makes use of qdev_prop_drive_iothread for scsi-disk so that the
disk can be attached to a node that is already in the target AioContext.
We need to check that the HBA actually supports iothreads, otherwise
scsi-disk must make sure that the node is already in the main
AioContext.

This changes the error message for conflicting iothread settings.
Previously, virtio-scsi produced the error message, now it comes from
blk_set_aio_context(). Update a test case accordingly.

Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent 307a5f60
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment