Skip to content

Commit dfbc475

Browse files
Nick PigginJens Axboe
authored andcommitted
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>
1 parent 297dbf5 commit dfbc475

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/block/brd.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ static struct brd_device *brd_alloc(int i)
436436
if (!brd->brd_queue)
437437
goto out_free_dev;
438438
blk_queue_make_request(brd->brd_queue, brd_make_request);
439+
blk_queue_ordered(brd->brd_queue, QUEUE_ORDERED_TAG, NULL);
439440
blk_queue_max_sectors(brd->brd_queue, 1024);
440441
blk_queue_bounce_limit(brd->brd_queue, BLK_BOUNCE_ANY);
441442

0 commit comments

Comments
 (0)