diff options
author | 2014-03-05 15:45:00 +0100 | |
---|---|---|
committer | 2014-03-05 16:58:20 +0100 | |
commit | f47c3f5a800a927238d20de9f99b5c77f0bc3fe0 (patch) | |
tree | c36a93d6af8e3a450132d95acf8c582bc00866d6 /util/qemu-thread-posix.c | |
parent | qemu-iotests: Test progress output for conversion (diff) | |
download | qemu-f47c3f5a800a927238d20de9f99b5c77f0bc3fe0.tar.xz qemu-f47c3f5a800a927238d20de9f99b5c77f0bc3fe0.zip |
iscsi: Use bs->sg for everything else than disks
The current iscsi block driver code makes the rather arbitrary decision
that TYPE_MEDIUM_CHANGER and TYPE_TAPE devices have bs->sg = 1 and all
other device types are disks.
Instead of this, check for TYPE_DISK to expose the disk interface and
make everything else bs->sg = 1. In particular, this includes devices
with TYPE_STORAGE_ARRAY, which is what LUN 0 of an iscsi target is.
(See https://bugzilla.redhat.com/show_bug.cgi?id=1067784 for the exact
scenario.)
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util/qemu-thread-posix.c')
0 files changed, 0 insertions, 0 deletions