virtio: set max_segment_size and max_sectors to infinite.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 30 Dec 2008 15:26:04 +0000 (09:26 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 29 Dec 2008 22:56:05 +0000 (09:26 +1030)
commit4b7f7e2049956f6e946ad56c1ee093e7bab74da9
tree23e307f720b8fd42465d5ec92da6b4205b6534a0
parent1b4aa2faeca1b9922033daf2475b6fc13b0ffea6
virtio: set max_segment_size and max_sectors to infinite.

Setting max_segment_size allows more than 64k per sg element, unless
the host specified a limit.  Setting max_sectors indicates that our
max_hw_segments is the only limit.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/block/virtio_blk.c