loop.c (86af5952a8470f96b53830372c64469cb7ce780c) loop.c (56d18f62f556b80105e38e7975975cf7465aae3e)
1/*
2 * linux/drivers/block/loop.c
3 *
4 * Written by Theodore Ts'o, 3/29/93
5 *
6 * Copyright 1993 by Theodore Ts'o. Redistribution of this file is
7 * permitted under the GNU General Public License.
8 *

--- 1923 unchanged lines hidden (view full) ---

1932 i = err;
1933
1934 err = -ENOMEM;
1935 lo->tag_set.ops = &loop_mq_ops;
1936 lo->tag_set.nr_hw_queues = 1;
1937 lo->tag_set.queue_depth = 128;
1938 lo->tag_set.numa_node = NUMA_NO_NODE;
1939 lo->tag_set.cmd_size = sizeof(struct loop_cmd);
1/*
2 * linux/drivers/block/loop.c
3 *
4 * Written by Theodore Ts'o, 3/29/93
5 *
6 * Copyright 1993 by Theodore Ts'o. Redistribution of this file is
7 * permitted under the GNU General Public License.
8 *

--- 1923 unchanged lines hidden (view full) ---

1932 i = err;
1933
1934 err = -ENOMEM;
1935 lo->tag_set.ops = &loop_mq_ops;
1936 lo->tag_set.nr_hw_queues = 1;
1937 lo->tag_set.queue_depth = 128;
1938 lo->tag_set.numa_node = NUMA_NO_NODE;
1939 lo->tag_set.cmd_size = sizeof(struct loop_cmd);
1940 lo->tag_set.flags = BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_SG_MERGE;
1940 lo->tag_set.flags = BLK_MQ_F_SHOULD_MERGE;
1941 lo->tag_set.driver_data = lo;
1942
1943 err = blk_mq_alloc_tag_set(&lo->tag_set);
1944 if (err)
1945 goto out_free_idr;
1946
1947 lo->lo_queue = blk_mq_init_queue(&lo->tag_set);
1948 if (IS_ERR(lo->lo_queue)) {

--- 308 unchanged lines hidden ---
1941 lo->tag_set.driver_data = lo;
1942
1943 err = blk_mq_alloc_tag_set(&lo->tag_set);
1944 if (err)
1945 goto out_free_idr;
1946
1947 lo->lo_queue = blk_mq_init_queue(&lo->tag_set);
1948 if (IS_ERR(lo->lo_queue)) {

--- 308 unchanged lines hidden ---