scsi_lib.c (d869f86645fc07dc83b89b68f1a22d91ebe29439) scsi_lib.c (56d18f62f556b80105e38e7975975cf7465aae3e)
1/*
2 * Copyright (C) 1999 Eric Youngdale
3 * Copyright (C) 2014 Christoph Hellwig
4 *
5 * SCSI queueing library.
6 * Initial versions: Eric Youngdale (eric@andante.org).
7 * Based upon conversations with large numbers
8 * of people at Linux Expo.

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

1894 cmd_size += sizeof(struct scsi_data_buffer) + sgl_size;
1895
1896 memset(&shost->tag_set, 0, sizeof(shost->tag_set));
1897 shost->tag_set.ops = &scsi_mq_ops;
1898 shost->tag_set.nr_hw_queues = shost->nr_hw_queues ? : 1;
1899 shost->tag_set.queue_depth = shost->can_queue;
1900 shost->tag_set.cmd_size = cmd_size;
1901 shost->tag_set.numa_node = NUMA_NO_NODE;
1/*
2 * Copyright (C) 1999 Eric Youngdale
3 * Copyright (C) 2014 Christoph Hellwig
4 *
5 * SCSI queueing library.
6 * Initial versions: Eric Youngdale (eric@andante.org).
7 * Based upon conversations with large numbers
8 * of people at Linux Expo.

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

1894 cmd_size += sizeof(struct scsi_data_buffer) + sgl_size;
1895
1896 memset(&shost->tag_set, 0, sizeof(shost->tag_set));
1897 shost->tag_set.ops = &scsi_mq_ops;
1898 shost->tag_set.nr_hw_queues = shost->nr_hw_queues ? : 1;
1899 shost->tag_set.queue_depth = shost->can_queue;
1900 shost->tag_set.cmd_size = cmd_size;
1901 shost->tag_set.numa_node = NUMA_NO_NODE;
1902 shost->tag_set.flags = BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_SG_MERGE;
1902 shost->tag_set.flags = BLK_MQ_F_SHOULD_MERGE;
1903 shost->tag_set.flags |=
1904 BLK_ALLOC_POLICY_TO_MQ_FLAG(shost->hostt->tag_alloc_policy);
1905 shost->tag_set.driver_data = shost;
1906
1907 return blk_mq_alloc_tag_set(&shost->tag_set);
1908}
1909
1910void scsi_mq_destroy_tags(struct Scsi_Host *shost)

--- 1201 unchanged lines hidden ---
1903 shost->tag_set.flags |=
1904 BLK_ALLOC_POLICY_TO_MQ_FLAG(shost->hostt->tag_alloc_policy);
1905 shost->tag_set.driver_data = shost;
1906
1907 return blk_mq_alloc_tag_set(&shost->tag_set);
1908}
1909
1910void scsi_mq_destroy_tags(struct Scsi_Host *shost)

--- 1201 unchanged lines hidden ---