Skip to content

Commit 1c91fe1

Browse files
Ian CampbellJens Axboe
authored andcommitted
xen/blkfront: Make sure we don't use bounce buffers, we don't need them.
[ linux-2.6.18-xen changeset 667228bf8fc5 ] Signed-off-by: Ian Campbell <[email protected]> Signed-off-by: Jeremy Fitzhardinge <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 244b4d5 commit 1c91fe1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/block/xen-blkfront.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ static int xlvbd_init_blk_queue(struct gendisk *gd, u16 sector_size)
324324
/* Make sure buffer addresses are sector-aligned. */
325325
blk_queue_dma_alignment(rq, 511);
326326

327+
/* Make sure we don't use bounce buffers. */
328+
blk_queue_bounce_limit(rq, BLK_BOUNCE_ANY);
329+
327330
gd->queue = rq;
328331

329332
return 0;

0 commit comments

Comments
 (0)