|
@@ -747,6 +747,10 @@ static int probe_disk(struct vdc_port *port)
|
|
|
|
|
|
port->disk = g;
|
|
port->disk = g;
|
|
|
|
|
|
|
|
+ /* Each segment in a request is up to an aligned page in size. */
|
|
|
|
+ blk_queue_segment_boundary(q, PAGE_SIZE - 1);
|
|
|
|
+ blk_queue_max_segment_size(q, PAGE_SIZE);
|
|
|
|
+
|
|
blk_queue_max_segments(q, port->ring_cookies);
|
|
blk_queue_max_segments(q, port->ring_cookies);
|
|
blk_queue_max_hw_sectors(q, port->max_xfer_size);
|
|
blk_queue_max_hw_sectors(q, port->max_xfer_size);
|
|
g->major = vdc_major;
|
|
g->major = vdc_major;
|