aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2009-04-15 04:27:07 -0400
committerJens Axboe <jens.axboe@oracle.com>2009-04-15 06:10:13 -0400
commitdfbc4752eab33e66f113f9daa2effbe241cd661d (patch)
tree3c27a1989452261b681ec42c8a16cce70f91deb3 /drivers/block
parent297dbf50d7ab0539cf9cf7f2a66918665a18e45e (diff)
brd: support barriers
brd is always ordered (not that it matters, as it is defined not to survive when the system goes down). So tell the block layer it is ordered, which might be of help with testing filesystems. Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/brd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/brd.c b/drivers/block/brd.c
index bdd4f5f45575..ee8ed68f197e 100644
--- a/drivers/block/brd.c
+++ b/drivers/block/brd.c
@@ -436,6 +436,7 @@ static struct brd_device *brd_alloc(int i)
436 if (!brd->brd_queue) 436 if (!brd->brd_queue)
437 goto out_free_dev; 437 goto out_free_dev;
438 blk_queue_make_request(brd->brd_queue, brd_make_request); 438 blk_queue_make_request(brd->brd_queue, brd_make_request);
439 blk_queue_ordered(brd->brd_queue, QUEUE_ORDERED_TAG, NULL);
439 blk_queue_max_sectors(brd->brd_queue, 1024); 440 blk_queue_max_sectors(brd->brd_queue, 1024);
440 blk_queue_bounce_limit(brd->brd_queue, BLK_BOUNCE_ANY); 441 blk_queue_bounce_limit(brd->brd_queue, BLK_BOUNCE_ANY);
441 442