[RFC PATCH 2/4] cxl/region: Move region lock error code to -EBUSY
From: Dan Williams
Date: Fri Apr 03 2026 - 17:00:54 EST
-EPERM is permission check. Root is permitted to manage a region, but at
any given point in time the region may be busy. In preparation for adding
another region operation failure due to region lock, move the existing
error indication to -EBUSY.
Signed-off-by: Dan Williams <dan.j.williams@xxxxxxxxx>
---
drivers/cxl/core/region.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c
index 3edb5703d6de..600c96be0888 100644
--- a/drivers/cxl/core/region.c
+++ b/drivers/cxl/core/region.c
@@ -426,7 +426,7 @@ static ssize_t commit_store(struct device *dev, struct device_attribute *attr,
}
if (test_bit(CXL_REGION_F_LOCK, &cxlr->flags))
- return -EPERM;
+ return -EBUSY;
rc = queue_reset(cxlr);
if (rc)
--
2.53.0