multipath.c (468f098734ab095b72d8af26bcd4bcb2ed31a3be) | multipath.c (5ee0524ba137fe928a88b440d014e3c8451fb32c) |
---|---|
1/* 2 * Copyright (c) 2017 Christoph Hellwig. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms and conditions of the GNU General Public License, 6 * version 2, as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT --- 148 unchanged lines hidden (view full) --- 157 /* 158 * Add a multipath node if the subsystems supports multiple controllers. 159 * We also do this for private namespaces as the namespace sharing data could 160 * change after a rescan. 161 */ 162 if (!(ctrl->subsys->cmic & (1 << 1)) || !multipath) 163 return 0; 164 | 1/* 2 * Copyright (c) 2017 Christoph Hellwig. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms and conditions of the GNU General Public License, 6 * version 2, as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT --- 148 unchanged lines hidden (view full) --- 157 /* 158 * Add a multipath node if the subsystems supports multiple controllers. 159 * We also do this for private namespaces as the namespace sharing data could 160 * change after a rescan. 161 */ 162 if (!(ctrl->subsys->cmic & (1 << 1)) || !multipath) 163 return 0; 164 |
165 q = blk_alloc_queue_node(GFP_KERNEL, NUMA_NO_NODE); | 165 q = blk_alloc_queue_node(GFP_KERNEL, NUMA_NO_NODE, NULL); |
166 if (!q) 167 goto out; 168 q->queuedata = head; 169 blk_queue_make_request(q, nvme_ns_head_make_request); 170 q->poll_fn = nvme_ns_head_poll; 171 queue_flag_set_unlocked(QUEUE_FLAG_NONROT, q); 172 /* set to a default value for 512 until disk is validated */ 173 blk_queue_logical_block_size(q, 512); --- 83 unchanged lines hidden --- | 166 if (!q) 167 goto out; 168 q->queuedata = head; 169 blk_queue_make_request(q, nvme_ns_head_make_request); 170 q->poll_fn = nvme_ns_head_poll; 171 queue_flag_set_unlocked(QUEUE_FLAG_NONROT, q); 172 /* set to a default value for 512 until disk is validated */ 173 blk_queue_logical_block_size(q, 512); --- 83 unchanged lines hidden --- |