xen-blkfront.c (086fa5ff0854c676ec333760f4c0154b3b242616) xen-blkfront.c (8a78362c4eefc1deddbefe2c7f38aabbc2429d6b)
1/*
2 * blkfront.c
3 *
4 * XenLinux virtual block device driver.
5 *
6 * Copyright (c) 2003-2004, Keir Fraser & Steve Hand
7 * Modifications by Mark A. Williamson are (c) Intel Research Cambridge
8 * Copyright (c) 2004, Christian Limpach

--- 339 unchanged lines hidden (view full) ---

348 blk_queue_logical_block_size(rq, sector_size);
349 blk_queue_max_hw_sectors(rq, 512);
350
351 /* Each segment in a request is up to an aligned page in size. */
352 blk_queue_segment_boundary(rq, PAGE_SIZE - 1);
353 blk_queue_max_segment_size(rq, PAGE_SIZE);
354
355 /* Ensure a merged request will fit in a single I/O ring slot. */
1/*
2 * blkfront.c
3 *
4 * XenLinux virtual block device driver.
5 *
6 * Copyright (c) 2003-2004, Keir Fraser & Steve Hand
7 * Modifications by Mark A. Williamson are (c) Intel Research Cambridge
8 * Copyright (c) 2004, Christian Limpach

--- 339 unchanged lines hidden (view full) ---

348 blk_queue_logical_block_size(rq, sector_size);
349 blk_queue_max_hw_sectors(rq, 512);
350
351 /* Each segment in a request is up to an aligned page in size. */
352 blk_queue_segment_boundary(rq, PAGE_SIZE - 1);
353 blk_queue_max_segment_size(rq, PAGE_SIZE);
354
355 /* Ensure a merged request will fit in a single I/O ring slot. */
356 blk_queue_max_phys_segments(rq, BLKIF_MAX_SEGMENTS_PER_REQUEST);
357 blk_queue_max_hw_segments(rq, BLKIF_MAX_SEGMENTS_PER_REQUEST);
356 blk_queue_max_segments(rq, BLKIF_MAX_SEGMENTS_PER_REQUEST);
358
359 /* Make sure buffer addresses are sector-aligned. */
360 blk_queue_dma_alignment(rq, 511);
361
362 /* Make sure we don't use bounce buffers. */
363 blk_queue_bounce_limit(rq, BLK_BOUNCE_ANY);
364
365 gd->queue = rq;

--- 730 unchanged lines hidden ---
357
358 /* Make sure buffer addresses are sector-aligned. */
359 blk_queue_dma_alignment(rq, 511);
360
361 /* Make sure we don't use bounce buffers. */
362 blk_queue_bounce_limit(rq, BLK_BOUNCE_ANY);
363
364 gd->queue = rq;

--- 730 unchanged lines hidden ---