xen-blkfront.c (3eb66e91a25497065c5322b1268cbc3953642227) | xen-blkfront.c (56d18f62f556b80105e38e7975975cf7465aae3e) |
---|---|
1/* 2 * blkfront.c 3 * 4 * XenLinux virtual block device driver. 5 * 6 * Copyright (c) 2003-2004, Keir Fraser & Steve Hand 7 * Modifications by Mark A. Williamson are (c) Intel Research Cambridge 8 * Copyright (c) 2004, Christian Limpach --- 963 unchanged lines hidden (view full) --- 972 * will be split between multiple request in the ring. 973 * To avoid problems when sending the request, divide by 974 * 2 the depth of the queue. 975 */ 976 info->tag_set.queue_depth = BLK_RING_SIZE(info) / 2; 977 } else 978 info->tag_set.queue_depth = BLK_RING_SIZE(info); 979 info->tag_set.numa_node = NUMA_NO_NODE; | 1/* 2 * blkfront.c 3 * 4 * XenLinux virtual block device driver. 5 * 6 * Copyright (c) 2003-2004, Keir Fraser & Steve Hand 7 * Modifications by Mark A. Williamson are (c) Intel Research Cambridge 8 * Copyright (c) 2004, Christian Limpach --- 963 unchanged lines hidden (view full) --- 972 * will be split between multiple request in the ring. 973 * To avoid problems when sending the request, divide by 974 * 2 the depth of the queue. 975 */ 976 info->tag_set.queue_depth = BLK_RING_SIZE(info) / 2; 977 } else 978 info->tag_set.queue_depth = BLK_RING_SIZE(info); 979 info->tag_set.numa_node = NUMA_NO_NODE; |
980 info->tag_set.flags = BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_SG_MERGE; | 980 info->tag_set.flags = BLK_MQ_F_SHOULD_MERGE; |
981 info->tag_set.cmd_size = sizeof(struct blkif_req); 982 info->tag_set.driver_data = info; 983 984 if (blk_mq_alloc_tag_set(&info->tag_set)) 985 return -EINVAL; 986 rq = blk_mq_init_queue(&info->tag_set); 987 if (IS_ERR(rq)) { 988 blk_mq_free_tag_set(&info->tag_set); --- 1778 unchanged lines hidden --- | 981 info->tag_set.cmd_size = sizeof(struct blkif_req); 982 info->tag_set.driver_data = info; 983 984 if (blk_mq_alloc_tag_set(&info->tag_set)) 985 return -EINVAL; 986 rq = blk_mq_init_queue(&info->tag_set); 987 if (IS_ERR(rq)) { 988 blk_mq_free_tag_set(&info->tag_set); --- 1778 unchanged lines hidden --- |