diff mbox

[API-NEXT,1/3] linux-gen: _ishm: accept multiple usage of same block name

Message ID 1478598570-2846-2-git-send-email-christophe.milard@linaro.org
State Accepted
Commit f195caa92ef8457c2c670fd3449ea6521e7ad823
Headers show

Commit Message

Christophe Milard Nov. 8, 2016, 9:49 a.m. UTC
This is following the request that using the same name
for multiple memory blocks should be allowed on north API.
The change made here will affect any _ishm users (i.e. both north
and south API), which is probably better for consistency.

Signed-off-by: Christophe Milard <christophe.milard@linaro.org>

---
 platform/linux-generic/_ishm.c | 8 --------
 1 file changed, 8 deletions(-)

-- 
2.7.4
diff mbox

Patch

diff --git a/platform/linux-generic/_ishm.c b/platform/linux-generic/_ishm.c
index 782c32f..2e7dd5e 100644
--- a/platform/linux-generic/_ishm.c
+++ b/platform/linux-generic/_ishm.c
@@ -777,14 +777,6 @@  int _odp_ishm_reserve(const char *name, uint64_t size, int fd,
 	page_sz      = odp_sys_page_size();
 	page_hp_size = odp_sys_huge_page_size();
 
-	/* check if name already exists */
-	if (name && (find_block_by_name(name) >= 0)) {
-		/* Found a block with the same name */
-		odp_spinlock_unlock(&ishm_tbl->lock);
-		ODP_ERR("name \"%s\" already used.\n", name);
-		return -1;
-	}
-
 	/* grab a new entry: */
 	for (new_index = 0; new_index < ISHM_MAX_NB_BLOCKS; new_index++) {
 		if (ishm_tbl->block[new_index].len == 0) {