Skip to content

Commit

Permalink
Remove the unused parts of the rcache base struct
Browse files Browse the repository at this point in the history
Fixes #13047

Signed-off-by: George Bosilca <[email protected]>
  • Loading branch information
bosilca committed Jan 27, 2025
1 parent ecd206d commit ab13add
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 2 additions & 0 deletions opal/class/opal_interval_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Copyright (c) 2015-2018 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2020 Google, LLC. All rights reserved.
* Copyright (c) 2025 NVIDIA Corporation. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand Down Expand Up @@ -85,6 +86,7 @@ static void opal_interval_tree_construct(opal_interval_tree_t *tree)
tree->tree_size = 0;
tree->lock = 0;
tree->reader_count = 0;
tree->reader_id = 0;
tree->epoch = 0;

/* set all reader epochs to UINT_MAX. this value is used to simplify
Expand Down
4 changes: 1 addition & 3 deletions opal/mca/rcache/base/rcache_base_vma.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Copyright (c) 2009 IBM Corporation. All rights reserved.
* Copyright (c) 2015-2018 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2025 NVIDIA Corporation. All rights reserved.
*
* $COPYRIGHT$
*
Expand Down Expand Up @@ -43,9 +44,6 @@ struct mca_rcache_base_registration_t;
struct mca_rcache_base_vma_module_t {
opal_object_t super;
opal_interval_tree_t tree;
opal_list_t vma_list;
opal_lifo_t vma_gc_lifo;
size_t reg_cur_cache_size;
opal_mutex_t vma_lock;
};
typedef struct mca_rcache_base_vma_module_t mca_rcache_base_vma_module_t;
Expand Down
3 changes: 1 addition & 2 deletions opal/mca/rcache/base/rcache_base_vma_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Copyright (c) 2006 Voltaire. All rights reserved.
* Copyright (c) 2007 Mellanox Technologies. All rights reserved.
* Copyright (c) 2009 IBM Corporation. All rights reserved.
* Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
* Copyright (c) 2013-2025 NVIDIA Corporation. All rights reserved.
* Copyright (c) 2013-2018 Cisco Systems, Inc. All rights reserved
* Copyright (c) 2015-2018 Los Alamos National Security, LLC. All rights
* reserved.
Expand All @@ -34,7 +34,6 @@
int mca_rcache_base_vma_tree_init(mca_rcache_base_vma_module_t *vma_module)
{
OBJ_CONSTRUCT(&vma_module->tree, opal_interval_tree_t);
vma_module->reg_cur_cache_size = 0;
return opal_interval_tree_init(&vma_module->tree);
}

Expand Down
6 changes: 2 additions & 4 deletions opal/mca/rcache/grdma/rcache_grdma_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Copyright (c) 2010 IBM Corporation. All rights reserved.
* Copyright (c) 2011-2018 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
* Copyright (c) 2013-2025 NVIDIA Corporation. All rights reserved.
* Copyright (c) 2016 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2020 Google, LLC. All rights reserved.
Expand Down Expand Up @@ -75,12 +75,10 @@ static inline bool registration_is_cacheable(mca_rcache_base_registration_t *reg

static void mca_rcache_grdma_cache_contructor(mca_rcache_grdma_cache_t *cache)
{
memset((void *) ((uintptr_t) cache + sizeof(cache->super)), 0,
sizeof(*cache) - sizeof(cache->super));

OBJ_CONSTRUCT(&cache->lru_list, opal_list_t);
OBJ_CONSTRUCT(&cache->gc_lifo, opal_lifo_t);

cache->cache_name = NULL;
cache->vma_module = mca_rcache_base_vma_module_alloc();
}

Expand Down

0 comments on commit ab13add

Please sign in to comment.