X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=map%2Fhashtable.c;fp=map%2Fhashtable.c;h=ba62692b8414cefdcbf685c6bab5ded5d1723904;hp=a9916465104b196d59647ce926cae5b98296155e;hb=a03cf3b0c40e6c3b8b4877b49a64288cb3fcb919;hpb=e592519ef19f890e551c27f47ef8b773bb4860da diff --git a/map/hashtable.c b/map/hashtable.c index a991646..ba62692 100644 --- a/map/hashtable.c +++ b/map/hashtable.c @@ -16,6 +16,7 @@ #include "common.h" #include "murmur.h" #include "mem.h" +#include "rcu.h" #include "hashtable.h" #ifndef NBD32 @@ -498,11 +499,11 @@ static void hti_defer_free (hti_t *hti) { continue; assert(!IS_TAGGED(val, TAG1) || val == TAG_VALUE(TOMBSTONE, TAG1)); // copy not in progress if (hti->ht->key_type != NULL && key != DOES_NOT_EXIST) { - nbd_defer_free(GET_PTR(key)); + rcu_defer_free(GET_PTR(key)); } } - nbd_defer_free((void *)hti->table); - nbd_defer_free(hti); + rcu_defer_free((void *)hti->table); + rcu_defer_free(hti); } static void hti_release (hti_t *hti) {