Kevin Wolf f47c3f5a80 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>
2014-03-05 16:58:20 +01:00
..
2014-02-21 21:02:24 +01:00
2013-09-12 10:12:47 +02:00
2013-12-20 16:26:16 +01:00
2014-02-21 21:02:24 +01:00
2014-02-21 21:02:23 +01:00
2013-09-12 10:12:47 +02:00
2013-08-19 15:52:19 +02:00
2014-02-25 10:50:11 +00:00
2013-12-16 10:12:20 +01:00
2014-02-21 21:02:22 +01:00
2014-02-09 09:12:38 +01:00
2014-02-21 21:02:24 +01:00
2014-02-17 11:57:23 -05:00
2014-02-21 21:02:24 +01:00
2014-02-21 21:02:24 +01:00
2014-02-21 21:02:24 +01:00
2014-02-17 11:57:23 -05:00
2014-02-21 21:02:22 +01:00
2013-09-12 10:12:48 +02:00
2014-02-21 21:02:24 +01:00
2014-01-31 22:05:03 +01:00
2014-02-21 21:02:23 +01:00
2014-02-21 21:02:24 +01:00
2014-02-21 21:02:23 +01:00