pc-bios/s390-ccw: Break up virtio-scsi read into multiples
commit5ffd4a3c2d75db3ed31752d0936f96719ee0257b
authorEric Farman <farman@linux.vnet.ibm.com>
Wed, 10 May 2017 15:53:54 +0000 (10 17:53 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 19 May 2017 10:29:01 +0000 (19 12:29 +0200)
tree5f640f88de5eaad9a03950f5535a48b88421fa28
parent98d3c524359fda04337c8369b617f2d5ef37bf5f
pc-bios/s390-ccw: Break up virtio-scsi read into multiples

A virtio-scsi request that goes through the host sd driver and exceeds
the maximum transfer size is automatically broken up for us.  But the
equivalent request going to the sg driver presumes that any length
requirements have already been honored.

Let's use the max_sectors field on the virtio-scsi controller device,
and break up all requests (both sd and sg) to avoid this problem.

Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com>
Message-Id: <20170510155359.32727-4-farman@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
pc-bios/s390-ccw/s390-ccw.h
pc-bios/s390-ccw/virtio-scsi.c