Lines Matching refs:lo_queue
195 if (queue_logical_block_size(lo->lo_queue) >= sb_bsize && in __loop_update_dio()
217 blk_mq_freeze_queue(lo->lo_queue); in __loop_update_dio()
220 blk_queue_flag_clear(QUEUE_FLAG_NOMERGES, lo->lo_queue); in __loop_update_dio()
223 blk_queue_flag_set(QUEUE_FLAG_NOMERGES, lo->lo_queue); in __loop_update_dio()
226 blk_mq_unfreeze_queue(lo->lo_queue); in __loop_update_dio()
714 blk_mq_freeze_queue(lo->lo_queue); in loop_change_fd()
721 blk_mq_unfreeze_queue(lo->lo_queue); in loop_change_fd()
854 struct request_queue *q = lo->lo_queue; in loop_config_discard()
908 struct request_queue *q = lo->lo_queue; in loop_update_rotational()
995 blk_queue_write_cache(lo->lo_queue, true, false); in loop_set_fd()
1002 blk_queue_logical_block_size(lo->lo_queue, bsize); in loop_set_fd()
1003 blk_queue_physical_block_size(lo->lo_queue, bsize); in loop_set_fd()
1004 blk_queue_io_min(lo->lo_queue, bsize); in loop_set_fd()
1106 blk_mq_freeze_queue(lo->lo_queue); in __loop_clr_fd()
1123 blk_queue_logical_block_size(lo->lo_queue, 512); in __loop_clr_fd()
1124 blk_queue_physical_block_size(lo->lo_queue, 512); in __loop_clr_fd()
1125 blk_queue_io_min(lo->lo_queue, 512); in __loop_clr_fd()
1141 blk_mq_unfreeze_queue(lo->lo_queue); in __loop_clr_fd()
1261 blk_mq_freeze_queue(lo->lo_queue); in loop_set_status()
1331 blk_mq_unfreeze_queue(lo->lo_queue); in loop_set_status()
1529 if (lo->lo_queue->limits.logical_block_size != arg) { in loop_set_block_size()
1534 blk_mq_freeze_queue(lo->lo_queue); in loop_set_block_size()
1537 if (lo->lo_queue->limits.logical_block_size != arg && in loop_set_block_size()
1546 blk_queue_logical_block_size(lo->lo_queue, arg); in loop_set_block_size()
1547 blk_queue_physical_block_size(lo->lo_queue, arg); in loop_set_block_size()
1548 blk_queue_io_min(lo->lo_queue, arg); in loop_set_block_size()
1551 blk_mq_unfreeze_queue(lo->lo_queue); in loop_set_block_size()
1824 blk_mq_freeze_queue(lo->lo_queue); in lo_release()
1825 blk_mq_unfreeze_queue(lo->lo_queue); in lo_release()
2009 lo->lo_queue = blk_mq_init_queue(&lo->tag_set); in loop_add()
2010 if (IS_ERR(lo->lo_queue)) { in loop_add()
2011 err = PTR_ERR(lo->lo_queue); in loop_add()
2014 lo->lo_queue->queuedata = lo; in loop_add()
2016 blk_queue_max_hw_sectors(lo->lo_queue, BLK_DEF_MAX_SECTORS); in loop_add()
2024 blk_queue_flag_set(QUEUE_FLAG_NOMERGES, lo->lo_queue); in loop_add()
2059 disk->queue = lo->lo_queue; in loop_add()
2066 blk_cleanup_queue(lo->lo_queue); in loop_add()
2080 blk_cleanup_queue(lo->lo_queue); in loop_remove()