[<prev] [next>] [day] [month] [year] [list]
Message-Id: <306123060.201750165205099.JavaMail.epsvc@epcpadp1new>
Date: Tue, 17 Jun 2025 18:09:33 +0530
From: Neeraj Kumar <s.neeraj@...sung.com>
To: dan.j.williams@...el.com, dave@...olabs.net,
jonathan.cameron@...wei.com, dave.jiang@...el.com,
alison.schofield@...el.com, vishal.l.verma@...el.com, ira.weiny@...el.com
Cc: a.manzanares@...sung.com, nifan.cxl@...il.com, anisa.su@...sung.com,
vishak.g@...sung.com, krish.reddy@...sung.com, arun.george@...sung.com,
alok.rathore@...sung.com, s.neeraj@...sung.com, neeraj.kernel@...il.com,
linux-kernel@...r.kernel.org, linux-cxl@...r.kernel.org,
nvdimm@...ts.linux.dev, gost.dev@...sung.com, cpgs@...sung.com
Subject: [RFC PATCH 09/20] nvdimm/namespace_label: Skip region label during
ns label DPA reservation
If Namespace label is present in LSA during nvdimm_probe then DPA
reservation is required. But this reservation is not required by region
label. Therefore if LSA scanning finds any region label, skip it.
Signed-off-by: Neeraj Kumar <s.neeraj@...sung.com>
---
drivers/nvdimm/label.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/nvdimm/label.c b/drivers/nvdimm/label.c
index 22e13db1ca20..3a870798a90c 100644
--- a/drivers/nvdimm/label.c
+++ b/drivers/nvdimm/label.c
@@ -450,6 +450,10 @@ int nd_label_reserve_dpa(struct nvdimm_drvdata *ndd)
nd_label = to_label(ndd, slot);
ns_label = &nd_label->ns_label;
+ /* skip region label, dpa reservation for ns label only */
+ if (is_region_label(ndd, nd_label))
+ continue;
+
if (!slot_valid(ndd, nd_label, slot))
continue;
--
2.34.1
Powered by blists - more mailing lists