X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=rculfhash.c;h=fa2121c9820edaa010856bf96a675a9cd6eace2e;hp=8a9e0974926d7ce3973f40b92fb629eebc58e0f2;hb=d2be3620f8040e68c0abdfb6ee9f11cc8b0961bc;hpb=ed35e6d83818d603682c7adafe7f32f05826e204 diff --git a/rculfhash.c b/rculfhash.c index 8a9e097..fa2121c 100644 --- a/rculfhash.c +++ b/rculfhash.c @@ -1651,6 +1651,9 @@ void _do_cds_lfht_resize(struct cds_lfht *ht) * Resize table, re-do if the target size has changed under us. */ do { + assert(uatomic_read(&ht->in_progress_resize)); + if (CMM_LOAD_SHARED(ht->in_progress_destroy)) + break; ht->t.resize_initiated = 1; old_size = ht->t.size; new_size = CMM_LOAD_SHARED(ht->t.resize_target);