Searched refs:brd_queue (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/block/
H A Dbrd.c39 struct request_queue *brd_queue; member in struct:brd_device
486 brd->brd_queue = blk_alloc_queue(GFP_KERNEL); brd_alloc()
487 if (!brd->brd_queue) brd_alloc()
490 blk_queue_make_request(brd->brd_queue, brd_make_request); brd_alloc()
491 blk_queue_max_hw_sectors(brd->brd_queue, 1024); brd_alloc()
492 blk_queue_bounce_limit(brd->brd_queue, BLK_BOUNCE_ANY); brd_alloc()
500 blk_queue_physical_block_size(brd->brd_queue, PAGE_SIZE); brd_alloc()
502 brd->brd_queue->limits.discard_granularity = PAGE_SIZE; brd_alloc()
503 brd->brd_queue->limits.max_discard_sectors = UINT_MAX; brd_alloc()
504 brd->brd_queue->limits.discard_zeroes_data = 1; brd_alloc()
505 queue_flag_set_unlocked(QUEUE_FLAG_DISCARD, brd->brd_queue); brd_alloc()
514 disk->queue = brd->brd_queue; brd_alloc()
522 blk_cleanup_queue(brd->brd_queue); brd_alloc()
532 blk_cleanup_queue(brd->brd_queue); brd_free()

Completed in 29 milliseconds