Skip to content

Commit 9d6610b

Browse files
Christoph Hellwigaxboe
authored andcommitted
nvme-mpath: remove I/O polling support
The ->poll_fn has been stale for a while, as a lot of places check for mq ops. But there is no real point in it anyway, as we don't even use the multipath code for subsystems without multiple ports, which is usually what we do high performance I/O to. If it really becomes an issue we should rework the nvme code to also skip the multipath code for any private namespace, even if that could mean some trouble when rescanning. Reviewed-by: Keith Busch <keith.busch@intel.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent f9801a4 commit 9d6610b

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

‎drivers/nvme/host/multipath.c‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -220,21 +220,6 @@ static blk_qc_t nvme_ns_head_make_request(struct request_queue *q,
220220
return ret;
221221
}
222222

223-
static int nvme_ns_head_poll(struct request_queue *q, blk_qc_t qc, bool spin)
224-
{
225-
struct nvme_ns_head *head = q->queuedata;
226-
struct nvme_ns *ns;
227-
int found = 0;
228-
int srcu_idx;
229-
230-
srcu_idx = srcu_read_lock(&head->srcu);
231-
ns = srcu_dereference(head->current_path[numa_node_id()], &head->srcu);
232-
if (likely(ns && nvme_path_is_optimized(ns)))
233-
found = ns->queue->poll_fn(q, qc, spin);
234-
srcu_read_unlock(&head->srcu, srcu_idx);
235-
return found;
236-
}
237-
238223
static void nvme_requeue_work(struct work_struct *work)
239224
{
240225
struct nvme_ns_head *head =
@@ -281,7 +266,6 @@ int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head)
281266
goto out;
282267
q->queuedata = head;
283268
blk_queue_make_request(q, nvme_ns_head_make_request);
284-
q->poll_fn = nvme_ns_head_poll;
285269
blk_queue_flag_set(QUEUE_FLAG_NONROT, q);
286270
/* set to a default value for 512 until disk is validated */
287271
blk_queue_logical_block_size(q, 512);

0 commit comments

Comments
 (0)