Skip to contentSkip to conversation

nvme: cleanup ida_simple_[get|remove]

PATCH Applied Sagi Grimberg 4 participants 19 messages Feb 14, 2022 – Feb 16, 2022

Subsystems (3)
lore
Share & tools
lore

Sagi Grimberg

author maintainer
#0 lore raw

cover nvme: cleanup ida_simple_[get|remove]

We have the simpler and more convenient idr_[alloc|free], use them instead.

Sagi Grimberg (7):
nvme-tcp: fix bogus request completion when failing to send AER
nvme: replace ida_simple[get|remove] with the simler ida_[alloc|free]
nvme-fc: replace ida_simple[get|remove] with the simler
ida_[alloc|free]
nvmet: replace ida_simple[get|remove] with the simler ida_[alloc|free]
nvmet-fc: replace ida_simple[get|remove] with the simler
ida_[alloc|free]
nvmet-rdma: replace ida_simple[get|remove] with the simler
ida_[alloc|free]
nvmet-tcp: replace ida_simple[get|remove] with the simler
ida_[alloc|free]

 drivers/nvme/host/core.c   | 18 +++++++++---------
 drivers/nvme/host/fc.c     | 16 ++++++++--------
 drivers/nvme/host/tcp.c    | 10 +++++++++-
 drivers/nvme/target/core.c |  4 ++--
 drivers/nvme/target/fc.c   | 12 ++++++------
 drivers/nvme/target/rdma.c |  6 +++---
 drivers/nvme/target/tcp.c  |  6 +++---
 7 files changed, 40 insertions(+), 32 deletions(-)
Signature · 1 line
2.30.2
author maintainer
#1 lore raw

PATCH 1/7 nvme-tcp: fix bogus request completion when failing to send AER

AER is not backed by a real request, hence we should not incorrectly assume that when failing to send a nvme command, it is a normal request but rather check if this is an aer and if so complete the aer (similar to the normal completion path).

---
 drivers/nvme/host/tcp.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/nvme/host/tcp.c +9 -1
index 01e24b5703db..1096a0b0a268 100644
@@ -913,7 +913,15 @@ static inline void nvme_tcp_done_send_req(struct nvme_tcp_queue *queue)
 
 static void nvme_tcp_fail_request(struct nvme_tcp_request *req)
 {
-	nvme_tcp_end_request(blk_mq_rq_from_pdu(req), NVME_SC_HOST_PATH_ERROR);
+	if (nvme_tcp_async_req(req)) {
+		union nvme_result res = {};
+
+		nvme_complete_async_event(&req->queue->ctrl->ctrl,
+			NVME_SC_HOST_PATH_ERROR, &res);
+	} else {
+		nvme_tcp_end_request(blk_mq_rq_from_pdu(req),
+				NVME_SC_HOST_PATH_ERROR);
+	}
 }
 
 static int nvme_tcp_try_send_data(struct nvme_tcp_request *req)
Signature · 1 line
2.30.2
Reviewed-by Hannes Reinecke on v1 1/7
#2 lore raw

Re: [PATCH 1/7] nvme-tcp: fix bogus request completion when failing to send AER

Quoted 7 lines · Sagi Grimberg

AER is not backed by a real request, hence we should not incorrectly assume that when failing to send a nvme command, it is a normal request but rather check if this is an aer and if so complete the aer (similar to the normal completion path).

I think same patch is already present in the nvme-5.17 see [1]:-

root@dev nvme (nvme-5.17) # grep "void nvme_tcp_fail_request" -A 15 host/tcp.c
static void nvme_tcp_fail_request(struct nvme_tcp_request *req)

{
	if (nvme_tcp_async_req(req)) {
		union nvme_result res = {};

		nvme_complete_async_event(&req->queue->ctrl->ctrl,
				cpu_to_le16(NVME_SC_HOST_PATH_ERROR), &res);
	} else {
		nvme_tcp_end_request(blk_mq_rq_from_pdu(req),
				NVME_SC_HOST_PATH_ERROR);
	}
}

static int nvme_tcp_try_send_data(struct nvme_tcp_request *req)

{
	struct nvme_tcp_queue *queue = req->queue;

[1]
http://lists.infradead.org/pipermail/linux-nvme/2022-February/029803.html

commit 63573807b27e0faf8065a28b1bbe1cbfb23c0130 (tag:
nvme-5.17-2022-02-10, origin/nvme-5.17)

Author: Sagi Grimberg <[email protected]>
Date:   Mon Feb 7 00:40:13 2022 +0200

nvme-tcp: fix bogus request completion when failing to send AER

AER is not backed by a real request, hence we should not incorrectly assume that when failing to send a nvme command, it is a normal request but rather check if this is an aer and if so complete the aer (similar to the normal completion path).

-ck

author maintainer
#3 lore raw

Re: [PATCH 1/7] nvme-tcp: fix bogus request completion when failing to send AER

Quoted 11 lines
Quoted 8 lines

AER is not backed by a real request, hence we should not incorrectly assume that when failing to send a nvme command, it is a normal request but rather check if this is an aer and if so complete the aer (similar to the normal completion path).

I think same patch is already present in the nvme-5.17 see [1]:-

Needs to be disregard, it sneaked in as it existed on the same branch...

author maintainer
#4 lore raw

PATCH 2/7 nvme: replace ida_simple[get|remove] with the simler ida_[alloc|free]

In reply to Sagi Grimberg

ida_simple_[get|remove] are wrappers anyways.

Also, use ida_alloc_min with the ns_ida as namespace enumeration starts with 1.

---
 drivers/nvme/host/core.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/nvme/host/core.c +9 -9
index c11cd3a814fd..84c5f84d7a8f 100644
@@ -561,7 +561,7 @@ static void nvme_free_ns_head(struct kref *ref)
 		container_of(ref, struct nvme_ns_head, ref);
 
 	nvme_mpath_remove_disk(head);
-	ida_simple_remove(&head->subsys->ns_ida, head->instance);
+	ida_free(&head->subsys->ns_ida, head->instance);
 	cleanup_srcu_struct(&head->srcu);
 	nvme_put_subsystem(head->subsys);
 	kfree(head);
@@ -2565,7 +2565,7 @@ static void nvme_release_subsystem(struct device *dev)
 		container_of(dev, struct nvme_subsystem, dev);
 
 	if (subsys->instance >= 0)
-		ida_simple_remove(&nvme_instance_ida, subsys->instance);
+		ida_free(&nvme_instance_ida, subsys->instance);
 	kfree(subsys);
 }
 
@@ -3616,7 +3616,7 @@ static int __nvme_check_ids(struct nvme_subsystem *subsys,
 
 static void nvme_cdev_rel(struct device *dev)
 {
-	ida_simple_remove(&nvme_ns_chr_minor_ida, MINOR(dev->devt));
+	ida_free(&nvme_ns_chr_minor_ida, MINOR(dev->devt));
 }
 
 void nvme_cdev_del(struct cdev *cdev, struct device *cdev_device)
@@ -3630,7 +3630,7 @@ int nvme_cdev_add(struct cdev *cdev, struct device *cdev_device,
 {
 	int minor, ret;
 
-	minor = ida_simple_get(&nvme_ns_chr_minor_ida, 0, 0, GFP_KERNEL);
+	minor = ida_alloc(&nvme_ns_chr_minor_ida, GFP_KERNEL);
 	if (minor < 0)
 		return minor;
 	cdev_device->devt = MKDEV(MAJOR(nvme_ns_chr_devt), minor);
@@ -3693,7 +3693,7 @@ static struct nvme_ns_head *nvme_alloc_ns_head(struct nvme_ctrl *ctrl,
 	head = kzalloc(size, GFP_KERNEL);
 	if (!head)
 		goto out;
-	ret = ida_simple_get(&ctrl->subsys->ns_ida, 1, 0, GFP_KERNEL);
+	ret = ida_alloc_min(&ctrl->subsys->ns_ida, 1, GFP_KERNEL);
 	if (ret < 0)
 		goto out_free_head;
 	head->instance = ret;
@@ -3732,7 +3732,7 @@ static struct nvme_ns_head *nvme_alloc_ns_head(struct nvme_ctrl *ctrl,
 out_cleanup_srcu:
 	cleanup_srcu_struct(&head->srcu);
 out_ida_remove:
-	ida_simple_remove(&ctrl->subsys->ns_ida, head->instance);
+	ida_free(&ctrl->subsys->ns_ida, head->instance);
 out_free_head:
 	kfree(head);
 out:
@@ -4431,7 +4431,7 @@ static void nvme_free_ctrl(struct device *dev)
 	struct nvme_subsystem *subsys = ctrl->subsys;
 
 	if (!subsys || ctrl->instance != subsys->instance)
-		ida_simple_remove(&nvme_instance_ida, ctrl->instance);
+		ida_free(&nvme_instance_ida, ctrl->instance);
 
 	nvme_free_cels(ctrl);
 	nvme_mpath_uninit(ctrl);
@@ -4490,7 +4490,7 @@ int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev,
 		goto out;
 	}
 
-	ret = ida_simple_get(&nvme_instance_ida, 0, 0, GFP_KERNEL);
+	ret = ida_alloc(&nvme_instance_ida, GFP_KERNEL);
 	if (ret < 0)
 		goto out;
 	ctrl->instance = ret;
@@ -4531,7 +4531,7 @@ int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev,
 	nvme_put_ctrl(ctrl);
 	kfree_const(ctrl->device->kobj.name);
 out_release_instance:
-	ida_simple_remove(&nvme_instance_ida, ctrl->instance);
+	ida_free(&nvme_instance_ida, ctrl->instance);
 out:
 	if (ctrl->discard_page)
 		__free_page(ctrl->discard_page);
Signature · 1 line
2.30.2
author maintainer
#5 lore raw

PATCH 3/7 nvme-fc: replace ida_simple[get|remove] with the simler ida_[alloc|free]

In reply to Sagi Grimberg

ida_simple_[get|remove] are wrappers anyways.

---
 drivers/nvme/host/fc.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/nvme/host/fc.c +8 -8
index 71b3108c22f0..96a5d7fc36f7 100644
@@ -259,7 +259,7 @@ nvme_fc_free_lport(struct kref *ref)
 		complete(&nvme_fc_unload_proceed);
 	spin_unlock_irqrestore(&nvme_fc_lock, flags);
 
-	ida_simple_remove(&nvme_fc_local_port_cnt, lport->localport.port_num);
+	ida_free(&nvme_fc_local_port_cnt, lport->localport.port_num);
 	ida_destroy(&lport->endp_cnt);
 
 	put_device(lport->dev);
@@ -399,7 +399,7 @@ nvme_fc_register_localport(struct nvme_fc_port_info *pinfo,
 		goto out_reghost_failed;
 	}
 
-	idx = ida_simple_get(&nvme_fc_local_port_cnt, 0, 0, GFP_KERNEL);
+	idx = ida_alloc(&nvme_fc_local_port_cnt, GFP_KERNEL);
 	if (idx < 0) {
 		ret = -ENOSPC;
 		goto out_fail_kfree;
@@ -439,7 +439,7 @@ nvme_fc_register_localport(struct nvme_fc_port_info *pinfo,
 	return 0;
 
 out_ida_put:
-	ida_simple_remove(&nvme_fc_local_port_cnt, idx);
+	ida_free(&nvme_fc_local_port_cnt, idx);
 out_fail_kfree:
 	kfree(newrec);
 out_reghost_failed:
@@ -535,7 +535,7 @@ nvme_fc_free_rport(struct kref *ref)
 	spin_unlock_irqrestore(&nvme_fc_lock, flags);
 
 	WARN_ON(!list_empty(&rport->disc_list));
-	ida_simple_remove(&lport->endp_cnt, rport->remoteport.port_num);
+	ida_free(&lport->endp_cnt, rport->remoteport.port_num);
 
 	kfree(rport);
 
@@ -713,7 +713,7 @@ nvme_fc_register_remoteport(struct nvme_fc_local_port *localport,
 		goto out_lport_put;
 	}
 
-	idx = ida_simple_get(&lport->endp_cnt, 0, 0, GFP_KERNEL);
+	idx = ida_alloc(&lport->endp_cnt, GFP_KERNEL);
 	if (idx < 0) {
 		ret = -ENOSPC;
 		goto out_kfree_rport;
@@ -2393,7 +2393,7 @@ nvme_fc_ctrl_free(struct kref *ref)
 	put_device(ctrl->dev);
 	nvme_fc_rport_put(ctrl->rport);
 
-	ida_simple_remove(&nvme_fc_ctrl_cnt, ctrl->cnum);
+	ida_free(&nvme_fc_ctrl_cnt, ctrl->cnum);
 	if (ctrl->ctrl.opts)
 		nvmf_free_options(ctrl->ctrl.opts);
 	kfree(ctrl);
@@ -3472,7 +3472,7 @@ nvme_fc_init_ctrl(struct device *dev, struct nvmf_ctrl_options *opts,
 		goto out_fail;
 	}
 
-	idx = ida_simple_get(&nvme_fc_ctrl_cnt, 0, 0, GFP_KERNEL);
+	idx = ida_alloc(&nvme_fc_ctrl_cnt, GFP_KERNEL);
 	if (idx < 0) {
 		ret = -ENOSPC;
 		goto out_free_ctrl;
@@ -3635,7 +3635,7 @@ nvme_fc_init_ctrl(struct device *dev, struct nvmf_ctrl_options *opts,
 	kfree(ctrl->queues);
 out_free_ida:
 	put_device(ctrl->dev);
-	ida_simple_remove(&nvme_fc_ctrl_cnt, ctrl->cnum);
+	ida_free(&nvme_fc_ctrl_cnt, ctrl->cnum);
 out_free_ctrl:
 	kfree(ctrl);
 out_fail:
Signature · 1 line
2.30.2
author maintainer
#6 lore raw

PATCH 4/7 nvmet: replace ida_simple[get|remove] with the simler ida_[alloc|free]

In reply to Sagi Grimberg

ida_simple_[get|remove] are wrappers anyways.

---
 drivers/nvme/target/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/nvme/target/core.c +2 -2
index 5119c687de68..724a6d373340 100644
@@ -1400,7 +1400,7 @@ u16 nvmet_alloc_ctrl(const char *subsysnqn, const char *hostnqn,
 	if (subsys->cntlid_min > subsys->cntlid_max)
 		goto out_free_sqs;
 
-	ret = ida_simple_get(&cntlid_ida,
+	ret = ida_alloc_range(&cntlid_ida,
 			     subsys->cntlid_min, subsys->cntlid_max,
 			     GFP_KERNEL);
 	if (ret < 0) {
@@ -1459,7 +1459,7 @@ static void nvmet_ctrl_free(struct kref *ref)
 	flush_work(&ctrl->async_event_work);
 	cancel_work_sync(&ctrl->fatal_err_work);
 
-	ida_simple_remove(&cntlid_ida, ctrl->cntlid);
+	ida_free(&cntlid_ida, ctrl->cntlid);
 
 	nvmet_async_events_free(ctrl);
 	kfree(ctrl->sqs);
Signature · 1 line
2.30.2
author maintainer
#7 lore raw

PATCH 5/7 nvmet-fc: replace ida_simple[get|remove] with the simler ida_[alloc|free]

In reply to Sagi Grimberg

ida_simple_[get|remove] are wrappers anyways.

---
 drivers/nvme/target/fc.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/nvme/target/fc.c +6 -6
index 22b5108168a6..cb013516784c 100644
@@ -1115,7 +1115,7 @@ nvmet_fc_alloc_target_assoc(struct nvmet_fc_tgtport *tgtport, void *hosthandle)
 	if (!assoc)
 		return NULL;
 
-	idx = ida_simple_get(&tgtport->assoc_cnt, 0, 0, GFP_KERNEL);
+	idx = ida_alloc(&tgtport->assoc_cnt, GFP_KERNEL);
 	if (idx < 0)
 		goto out_free_assoc;
 
@@ -1157,7 +1157,7 @@ nvmet_fc_alloc_target_assoc(struct nvmet_fc_tgtport *tgtport, void *hosthandle)
 out_put:
 	nvmet_fc_tgtport_put(tgtport);
 out_ida:
-	ida_simple_remove(&tgtport->assoc_cnt, idx);
+	ida_free(&tgtport->assoc_cnt, idx);
 out_free_assoc:
 	kfree(assoc);
 	return NULL;
@@ -1183,7 +1183,7 @@ nvmet_fc_target_assoc_free(struct kref *ref)
 	/* if pending Rcv Disconnect Association LS, send rsp now */
 	if (oldls)
 		nvmet_fc_xmt_ls_rsp(tgtport, oldls);
-	ida_simple_remove(&tgtport->assoc_cnt, assoc->a_id);
+	ida_free(&tgtport->assoc_cnt, assoc->a_id);
 	dev_info(tgtport->dev,
 		"{%d:%d} Association freed\n",
 		tgtport->fc_target_port.port_num, assoc->a_id);
@@ -1383,7 +1383,7 @@ nvmet_fc_register_targetport(struct nvmet_fc_port_info *pinfo,
 		goto out_regtgt_failed;
 	}
 
-	idx = ida_simple_get(&nvmet_fc_tgtport_cnt, 0, 0, GFP_KERNEL);
+	idx = ida_alloc(&nvmet_fc_tgtport_cnt, GFP_KERNEL);
 	if (idx < 0) {
 		ret = -ENOSPC;
 		goto out_fail_kfree;
@@ -1433,7 +1433,7 @@ nvmet_fc_register_targetport(struct nvmet_fc_port_info *pinfo,
 out_free_newrec:
 	put_device(dev);
 out_ida_put:
-	ida_simple_remove(&nvmet_fc_tgtport_cnt, idx);
+	ida_free(&nvmet_fc_tgtport_cnt, idx);
 out_fail_kfree:
 	kfree(newrec);
 out_regtgt_failed:
@@ -1460,7 +1460,7 @@ nvmet_fc_free_tgtport(struct kref *ref)
 	/* let the LLDD know we've finished tearing it down */
 	tgtport->ops->targetport_delete(&tgtport->fc_target_port);
 
-	ida_simple_remove(&nvmet_fc_tgtport_cnt,
+	ida_free(&nvmet_fc_tgtport_cnt,
 			tgtport->fc_target_port.port_num);
 
 	ida_destroy(&tgtport->assoc_cnt);
Signature · 1 line
2.30.2
author maintainer
#8 lore raw

PATCH 6/7 nvmet-rdma: replace ida_simple[get|remove] with the simler ida_[alloc|free]

In reply to Sagi Grimberg

ida_simple_[get|remove] are wrappers anyways.

---
 drivers/nvme/target/rdma.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/nvme/target/rdma.c +3 -3
index 1deb4043e242..00656754e331 100644
@@ -1356,7 +1356,7 @@ static void nvmet_rdma_free_queue(struct nvmet_rdma_queue *queue)
 				!queue->host_qid);
 	}
 	nvmet_rdma_free_rsps(queue);
-	ida_simple_remove(&nvmet_rdma_queue_ida, queue->idx);
+	ida_free(&nvmet_rdma_queue_ida, queue->idx);
 	kfree(queue);
 }
 
@@ -1459,7 +1459,7 @@ nvmet_rdma_alloc_queue(struct nvmet_rdma_device *ndev,
 	spin_lock_init(&queue->rsps_lock);
 	INIT_LIST_HEAD(&queue->queue_list);
 
-	queue->idx = ida_simple_get(&nvmet_rdma_queue_ida, 0, 0, GFP_KERNEL);
+	queue->idx = ida_alloc(&nvmet_rdma_queue_ida, GFP_KERNEL);
 	if (queue->idx < 0) {
 		ret = NVME_RDMA_CM_NO_RSC;
 		goto out_destroy_sq;
@@ -1510,7 +1510,7 @@ nvmet_rdma_alloc_queue(struct nvmet_rdma_device *ndev,
 out_free_responses:
 	nvmet_rdma_free_rsps(queue);
 out_ida_remove:
-	ida_simple_remove(&nvmet_rdma_queue_ida, queue->idx);
+	ida_free(&nvmet_rdma_queue_ida, queue->idx);
 out_destroy_sq:
 	nvmet_sq_destroy(&queue->nvme_sq);
 out_free_queue:
Signature · 1 line
2.30.2
author maintainer
#9 lore raw

PATCH 7/7 nvmet-tcp: replace ida_simple[get|remove] with the simler ida_[alloc|free]

In reply to Sagi Grimberg

ida_simple_[get|remove] are wrappers anyways.

---
 drivers/nvme/target/tcp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/nvme/target/tcp.c +3 -3
index 7c1c43ce466b..83ca577f72be 100644
@@ -1473,7 +1473,7 @@ static void nvmet_tcp_release_queue_work(struct work_struct *w)
 	nvmet_tcp_free_cmds(queue);
 	if (queue->hdr_digest || queue->data_digest)
 		nvmet_tcp_free_crypto(queue);
-	ida_simple_remove(&nvmet_tcp_queue_ida, queue->idx);
+	ida_free(&nvmet_tcp_queue_ida, queue->idx);
 
 	page = virt_to_head_page(queue->pf_cache.va);
 	__page_frag_cache_drain(page, queue->pf_cache.pagecnt_bias);
@@ -1613,7 +1613,7 @@ static int nvmet_tcp_alloc_queue(struct nvmet_tcp_port *port,
 	init_llist_head(&queue->resp_list);
 	INIT_LIST_HEAD(&queue->resp_send_list);
 
-	queue->idx = ida_simple_get(&nvmet_tcp_queue_ida, 0, 0, GFP_KERNEL);
+	queue->idx = ida_alloc(&nvmet_tcp_queue_ida, GFP_KERNEL);
 	if (queue->idx < 0) {
 		ret = queue->idx;
 		goto out_free_queue;
@@ -1646,7 +1646,7 @@ static int nvmet_tcp_alloc_queue(struct nvmet_tcp_port *port,
 out_free_connect:
 	nvmet_tcp_free_cmd(&queue->connect);
 out_ida_remove:
-	ida_simple_remove(&nvmet_tcp_queue_ida, queue->idx);
+	ida_free(&nvmet_tcp_queue_ida, queue->idx);
 out_free_queue:
 	kfree(queue);
 	return ret;
Signature · 1 line
2.30.2
author maintainer
#11 lore raw
Quoted 6 lines
Quoted 4 lines

We have the simpler and more convenient idr_[alloc|free], use them instead.

you sent the same series :) either ways seems like a useful cleanup..

Didn't see yours for some reason... Did you CC me? Can you point me to it?

#12 lore raw
Quoted 10 lines · Sagi Grimberg
Quoted 6 lines
Quoted 4 lines

We have the simpler and more convenient idr_[alloc|free], use them instead.

you sent the same series :) either ways seems like a useful cleanup..

Didn't see yours for some reason... Did you CC me? Can you point me to it?

I did cc you, here is the link, somehow it takes a while to appear on the mailing list than it appears in my mail box :-

http://lists.infradead.org/pipermail/linux-nvme/2022-February/029954.html

-ck

author maintainer
#13 lore raw
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

We have the simpler and more convenient idr_[alloc|free], use them instead.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

you sent the same series :) either ways seems like a useful cleanup..

Didn't see yours for some reason... Did you CC me? Can you point me to it?

I did cc you, here is the link, somehow it takes a while to appear on the mailing list than it appears in my mail box :-

Yea, got it, just a tad late...

#14 lore raw
Quoted 4 lines · Sagi Grimberg
Quoted 2 lines

I did cc you, here is the link, somehow it takes a while to appear on the mailing list than it appears in my mail box :-

Yea, got it, just a tad late...

So which of the two versions should we go with? Either one will need reviews :)

maintainer Reviewed-by
#15 lore raw
Quoted 8 lines · Christoph Hellwig
Quoted 4 lines · Sagi Grimberg
Quoted 2 lines

I did cc you, here is the link, somehow it takes a while to appear on the mailing list than it appears in my mail box :-

Yea, got it, just a tad late...

So which of the two versions should we go with? Either one will need reviews :)

With the exception of 1/7 that sneaked in Sagi's set, the patches are identical (including the file ordering despite no dependency!), and both look fine to me. Sagi's was posted first by a slim margin, so I guess use that one unless you prefer Chaitanya's changelogs.

#16 lore raw
Quoted 5 lines · Keith Busch
Quoted 4 lines · Christoph Hellwig
Quoted 3 lines · Sagi Grimberg
Quoted 2 lines

I did cc you, here is the link, somehow it takes a while to appear on the mailing list than it appears in my mail box :-

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Yea, got it, just a tad late...

So which of the two versions should we go with? Either one will need reviews :)

With the exception of 1/7 that sneaked in Sagi's set, the patches are identical (including the file ordering despite no dependency!), and both

he he I did notice that too. I had those patches sitting in my tree from last Wednesday [1] was waiting for any re-base from sunday ..

Quoted 5 lines

look fine to me. Sagi's was posted first by a slim margin, so I guess use that one unless you prefer Chaitanya's changelogs.

[1]
==> 0001-nvme-core-use-non-deprecated-ida_simple_xxx-APIs.patch <==
From 1947100055819548f45a29243a480118877a6f2a Mon Sep 17 00:00:00 2001
From: Chaitanya Kulkarni <[email protected]>
Date: Wed, 9 Feb 2022 00:02:58 -0800
Subject: [PATCH 1/6] nvme-core: use non-deprecated ida_simple_xxx APIs

==> 0002-nvme-fc-use-non-deprecated-ida_simple_xxx-APIs.patch <==
From 433da9015cff89b0defcc070a3cc7ebe0dde3bf9 Mon Sep 17 00:00:00 2001
From: Chaitanya Kulkarni <[email protected]>
Date: Wed, 9 Feb 2022 00:03:34 -0800
Subject: [PATCH 2/6] nvme-fc: use non-deprecated ida_simple_xxx APIs

==> 0003-nvmet-use-non-deprecated-ida_simple_xxx-APIs.patch <==
From 6a1310fdb15be3aa080aee58fca511665c464e88 Mon Sep 17 00:00:00 2001
From: Chaitanya Kulkarni <[email protected]>
Date: Wed, 9 Feb 2022 00:03:56 -0800
Subject: [PATCH 3/6] nvmet: use non-deprecated ida_simple_xxx APIs

==> 0004-nvmet-fc-use-non-deprecated-ida_simple_xxx-APIs.patch <==
From 91f89b972f95ab43f56e8a166ed05fae02df1e7a Mon Sep 17 00:00:00 2001
From: Chaitanya Kulkarni <[email protected]>
Date: Wed, 9 Feb 2022 00:04:27 -0800
Subject: [PATCH 4/6] nvmet-fc: use non-deprecated ida_simple_xxx APIs

==> 0005-nvmet-rdma-use-non-deprecated-ida_simple_xxx-APIs.patch <==
From c74c2a302f50c3b6a41c43d3f6c23f3969695f98 Mon Sep 17 00:00:00 2001
From: Chaitanya Kulkarni <[email protected]>
Date: Wed, 9 Feb 2022 00:04:49 -0800
Subject: [PATCH 5/6] nvmet-rdma: use non-deprecated ida_simple_xxx APIs

==> 0006-nvmet-tcp-use-non-deprecated-ida_simple_xxx-APIs.patch <==
From e16abc2c99fcd7e7bd5eeb23780e5b967ed2df3b Mon Sep 17 00:00:00 2001
From: Chaitanya Kulkarni <[email protected]>
Date: Wed, 9 Feb 2022 00:05:17 -0800
Subject: [PATCH 6/6] nvmet-tcp: use non-deprecated ida_simple_xxx APIs

Reviewed-by
#17 lore raw
In reply to Christoph Hellwig
Quoted 9 lines · Christoph Hellwig
Quoted 4 lines · Sagi Grimberg
Quoted 2 lines

I did cc you, here is the link, somehow it takes a while to appear on the mailing list than it appears in my mail box :-

Yea, got it, just a tad late...

So which of the two versions should we go with? Either one will need reviews :)

I'm fine with anything, if you can add my signoff then ignore my review by, in case we can't do that then here my tag :-