Fix: symbol aliases with TLS compat
[urcu.git] / src / urcu-qsbr.c
CommitLineData
9f1621ca 1/*
7ac06cef 2 * urcu-qsbr.c
9f1621ca 3 *
7ac06cef 4 * Userspace RCU QSBR library
9f1621ca 5 *
6982d6d7 6 * Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
9f1621ca
MD
7 * Copyright (c) 2009 Paul E. McKenney, IBM Corporation.
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 *
23 * IBM's contributions to this file may be relicensed under LGPLv2 or later.
24 */
25
71c811bf 26#define _LGPL_SOURCE
9f1621ca
MD
27#include <stdio.h>
28#include <pthread.h>
29#include <signal.h>
30#include <assert.h>
31#include <stdlib.h>
6d841bc2 32#include <stdint.h>
9f1621ca
MD
33#include <string.h>
34#include <errno.h>
35#include <poll.h>
36
4477a870
MD
37#include <urcu/wfcqueue.h>
38#include <urcu/map/urcu-qsbr.h>
727f819d 39#define BUILD_QSBR_LIB
4477a870
MD
40#include <urcu/static/urcu-qsbr.h>
41#include <urcu/pointer.h>
42#include <urcu/tls-compat.h>
71c811bf 43
4a6d7378 44#include "urcu-die.h"
cba82d7b 45#include "urcu-wait.h"
ce28e67a 46#include "urcu-utils.h"
4a6d7378 47
4477a870 48#define URCU_API_MAP
9f1621ca 49/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
71c811bf 50#undef _LGPL_SOURCE
4477a870 51#include <urcu/urcu-qsbr.h>
71c811bf 52#define _LGPL_SOURCE
9f1621ca 53
4477a870 54void __attribute__((destructor)) urcu_qsbr_exit(void);
f6d18c64 55
731ccb96
MD
56/*
57 * rcu_gp_lock ensures mutual exclusion between threads calling
58 * synchronize_rcu().
59 */
6abb4bd5 60static pthread_mutex_t rcu_gp_lock = PTHREAD_MUTEX_INITIALIZER;
731ccb96
MD
61/*
62 * rcu_registry_lock ensures mutual exclusion between threads
63 * registering and unregistering themselves to/from the registry, and
64 * with threads reading that registry from synchronize_rcu(). However,
65 * this lock is not held all the way through the completion of awaiting
66 * for the grace period. It is sporadically released between iterations
67 * on the registry.
68 * rcu_registry_lock may nest inside rcu_gp_lock.
69 */
70static pthread_mutex_t rcu_registry_lock = PTHREAD_MUTEX_INITIALIZER;
4477a870 71struct urcu_gp urcu_qsbr_gp = { .ctr = URCU_QSBR_GP_ONLINE };
ce28e67a 72URCU_ATTR_ALIAS("urcu_qsbr_gp") extern struct urcu_gp rcu_gp_qsbr;
9f1621ca 73
408f6d92
PB
74/*
75 * Active attempts to check for reader Q.S. before calling futex().
76 */
77#define RCU_QS_ACTIVE_ATTEMPTS 100
78
9f1621ca
MD
79/*
80 * Written to only by each individual reader. Read by both the reader and the
81 * writers.
82 */
4477a870 83DEFINE_URCU_TLS(struct urcu_qsbr_reader, urcu_qsbr_reader);
99bfa9e9 84DEFINE_URCU_TLS_ALIAS(struct urcu_qsbr_reader, urcu_qsbr_reader, rcu_reader_qsbr);
9f1621ca 85
16aa9ee8 86static CDS_LIST_HEAD(registry);
9f1621ca 87
6362f68f 88/*
bf6822a6 89 * Queue keeping threads awaiting to wait for a grace period. Contains
6362f68f
MD
90 * struct gp_waiters_thread objects.
91 */
bf6822a6 92static DEFINE_URCU_WAIT_QUEUE(gp_waiters);
6362f68f 93
6abb4bd5 94static void mutex_lock(pthread_mutex_t *mutex)
9f1621ca
MD
95{
96 int ret;
97
98#ifndef DISTRUST_SIGNALS_EXTREME
6abb4bd5 99 ret = pthread_mutex_lock(mutex);
4a6d7378
MD
100 if (ret)
101 urcu_die(ret);
9f1621ca 102#else /* #ifndef DISTRUST_SIGNALS_EXTREME */
6abb4bd5 103 while ((ret = pthread_mutex_trylock(mutex)) != 0) {
4a6d7378
MD
104 if (ret != EBUSY && ret != EINTR)
105 urcu_die(ret);
9f1621ca
MD
106 poll(NULL,0,10);
107 }
108#endif /* #else #ifndef DISTRUST_SIGNALS_EXTREME */
109}
110
6abb4bd5 111static void mutex_unlock(pthread_mutex_t *mutex)
9f1621ca
MD
112{
113 int ret;
114
6abb4bd5 115 ret = pthread_mutex_unlock(mutex);
4a6d7378
MD
116 if (ret)
117 urcu_die(ret);
9f1621ca
MD
118}
119
bc6c15bb
MD
120/*
121 * synchronize_rcu() waiting. Single thread.
122 */
4d703340 123static void wait_gp(void)
bc6c15bb 124{
4d703340 125 /* Read reader_gp before read futex */
5481ddb3 126 cmm_smp_rmb();
4477a870 127 if (uatomic_read(&urcu_qsbr_gp.futex) != -1)
b0a841b4 128 return;
4477a870 129 while (futex_noasync(&urcu_qsbr_gp.futex, FUTEX_WAIT, -1,
b0a841b4
MD
130 NULL, NULL, 0)) {
131 switch (errno) {
132 case EWOULDBLOCK:
133 /* Value already changed. */
134 return;
135 case EINTR:
136 /* Retry if interrupted by signal. */
137 break; /* Get out of switch. */
138 default:
139 /* Unexpected error. */
140 urcu_die(errno);
141 }
142 }
bc6c15bb
MD
143}
144
731ccb96
MD
145/*
146 * Always called with rcu_registry lock held. Releases this lock between
147 * iterations and grabs it again. Holds the lock when it returns.
148 */
708d89f0
MD
149static void wait_for_readers(struct cds_list_head *input_readers,
150 struct cds_list_head *cur_snap_readers,
151 struct cds_list_head *qsreaders)
9f1621ca 152{
9340c38d 153 unsigned int wait_loops = 0;
4477a870 154 struct urcu_qsbr_reader *index, *tmp;
9f1621ca 155
9f1621ca 156 /*
4477a870 157 * Wait for each thread URCU_TLS(urcu_qsbr_reader).ctr to either
f6b42f9c 158 * indicate quiescence (offline), or for them to observe the
4477a870 159 * current urcu_qsbr_gp.ctr value.
9f1621ca 160 */
4d703340 161 for (;;) {
5e81fed7
MD
162 if (wait_loops < RCU_QS_ACTIVE_ATTEMPTS)
163 wait_loops++;
83a2c421 164 if (wait_loops >= RCU_QS_ACTIVE_ATTEMPTS) {
4477a870 165 uatomic_set(&urcu_qsbr_gp.futex, -1);
83a2c421
PB
166 /*
167 * Write futex before write waiting (the other side
168 * reads them in the opposite order).
169 */
170 cmm_smp_wmb();
708d89f0 171 cds_list_for_each_entry(index, input_readers, node) {
83a2c421
PB
172 _CMM_STORE_SHARED(index->waiting, 1);
173 }
4d703340 174 /* Write futex before read reader_gp */
5481ddb3 175 cmm_smp_mb();
4d703340 176 }
708d89f0 177 cds_list_for_each_entry_safe(index, tmp, input_readers, node) {
4477a870
MD
178 switch (urcu_qsbr_reader_state(&index->ctr)) {
179 case URCU_READER_ACTIVE_CURRENT:
708d89f0
MD
180 if (cur_snap_readers) {
181 cds_list_move(&index->node,
182 cur_snap_readers);
183 break;
184 }
185 /* Fall-through */
4477a870 186 case URCU_READER_INACTIVE:
708d89f0
MD
187 cds_list_move(&index->node, qsreaders);
188 break;
4477a870 189 case URCU_READER_ACTIVE_OLD:
708d89f0
MD
190 /*
191 * Old snapshot. Leaving node in
192 * input_readers will make us busy-loop
193 * until the snapshot becomes current or
194 * the reader becomes inactive.
195 */
196 break;
197 }
4d703340 198 }
bc6c15bb 199
708d89f0 200 if (cds_list_empty(input_readers)) {
83a2c421 201 if (wait_loops >= RCU_QS_ACTIVE_ATTEMPTS) {
4d703340 202 /* Read reader_gp before write futex */
5481ddb3 203 cmm_smp_mb();
4477a870 204 uatomic_set(&urcu_qsbr_gp.futex, 0);
4d703340
MD
205 }
206 break;
207 } else {
731ccb96
MD
208 /* Temporarily unlock the registry lock. */
209 mutex_unlock(&rcu_registry_lock);
83a2c421 210 if (wait_loops >= RCU_QS_ACTIVE_ATTEMPTS) {
4d703340 211 wait_gp();
bc6c15bb 212 } else {
9f1621ca 213#ifndef HAS_INCOHERENT_CACHES
06f22bdb 214 caa_cpu_relax();
9f1621ca 215#else /* #ifndef HAS_INCOHERENT_CACHES */
5481ddb3 216 cmm_smp_mb();
9f1621ca 217#endif /* #else #ifndef HAS_INCOHERENT_CACHES */
bc6c15bb 218 }
731ccb96
MD
219 /* Re-lock the registry lock before the next loop. */
220 mutex_lock(&rcu_registry_lock);
bc6c15bb 221 }
9f1621ca
MD
222 }
223}
224
47d2f29e
MD
225/*
226 * Using a two-subphases algorithm for architectures with smaller than 64-bit
227 * long-size to ensure we do not encounter an overflow bug.
228 */
229
b39e1761 230#if (CAA_BITS_PER_LONG < 64)
4477a870 231void urcu_qsbr_synchronize_rcu(void)
47d2f29e 232{
708d89f0
MD
233 CDS_LIST_HEAD(cur_snap_readers);
234 CDS_LIST_HEAD(qsreaders);
bc49c323 235 unsigned long was_online;
bf6822a6
MD
236 DEFINE_URCU_WAIT_NODE(wait, URCU_WAIT_WAITING);
237 struct urcu_waiters waiters;
bc49c323 238
4477a870 239 was_online = urcu_qsbr_read_ongoing();
bc49c323 240
47d2f29e 241 /* All threads should read qparity before accessing data structure
27b940e7
PB
242 * where new ptr points to. In the "then" case, rcu_thread_offline
243 * includes a memory barrier.
244 *
bc49c323 245 * Mark the writer thread offline to make sure we don't wait for
5e77fc1f
PM
246 * our own quiescent state. This allows using synchronize_rcu()
247 * in threads registered as readers.
bc49c323 248 */
27b940e7 249 if (was_online)
4477a870 250 urcu_qsbr_thread_offline();
27b940e7
PB
251 else
252 cmm_smp_mb();
bc49c323 253
6362f68f 254 /*
bf6822a6 255 * Add ourself to gp_waiters queue of threads awaiting to wait
6362f68f 256 * for a grace period. Proceed to perform the grace period only
bf6822a6 257 * if we are the first thread added into the queue.
6362f68f 258 */
bf6822a6
MD
259 if (urcu_wait_add(&gp_waiters, &wait) != 0) {
260 /* Not first in queue: will be awakened by another thread. */
261 urcu_adaptative_busy_wait(&wait);
6362f68f
MD
262 goto gp_end;
263 }
bf6822a6
MD
264 /* We won't need to wake ourself up */
265 urcu_wait_set_state(&wait, URCU_WAIT_RUNNING);
6362f68f 266
6abb4bd5 267 mutex_lock(&rcu_gp_lock);
47d2f29e 268
6362f68f 269 /*
bf6822a6 270 * Move all waiters into our local queue.
6362f68f 271 */
bf6822a6 272 urcu_move_waiters(&waiters, &gp_waiters);
6362f68f 273
731ccb96
MD
274 mutex_lock(&rcu_registry_lock);
275
16aa9ee8 276 if (cds_list_empty(&registry))
2dfb8b5e 277 goto out;
47d2f29e
MD
278
279 /*
f6b42f9c 280 * Wait for readers to observe original parity or be quiescent.
731ccb96
MD
281 * wait_for_readers() can release and grab again rcu_registry_lock
282 * interally.
47d2f29e 283 */
708d89f0 284 wait_for_readers(&registry, &cur_snap_readers, &qsreaders);
47d2f29e
MD
285
286 /*
f6b42f9c 287 * Must finish waiting for quiescent state for original parity
4477a870 288 * before committing next urcu_qsbr_gp.ctr update to memory. Failure
f6b42f9c 289 * to do so could result in the writer waiting forever while new
5e77fc1f 290 * readers are always accessing data (no progress). Enforce
4477a870
MD
291 * compiler-order of load URCU_TLS(urcu_qsbr_reader).ctr before store
292 * to urcu_qsbr_gp.ctr.
47d2f29e 293 */
5481ddb3 294 cmm_barrier();
47d2f29e 295
47d2f29e 296 /*
5481ddb3 297 * Adding a cmm_smp_mb() which is _not_ formally required, but makes the
2dfb8b5e
MD
298 * model easier to understand. It does not have a big performance impact
299 * anyway, given this is the write-side.
47d2f29e 300 */
5481ddb3 301 cmm_smp_mb();
47d2f29e 302
f6b42f9c 303 /* Switch parity: 0 -> 1, 1 -> 0 */
4477a870 304 CMM_STORE_SHARED(urcu_qsbr_gp.ctr, urcu_qsbr_gp.ctr ^ URCU_QSBR_GP_CTR);
f6b42f9c 305
47d2f29e 306 /*
4477a870 307 * Must commit urcu_qsbr_gp.ctr update to memory before waiting for
f6b42f9c
MD
308 * quiescent state. Failure to do so could result in the writer
309 * waiting forever while new readers are always accessing data
4477a870
MD
310 * (no progress). Enforce compiler-order of store to urcu_qsbr_gp.ctr
311 * before load URCU_TLS(urcu_qsbr_reader).ctr.
47d2f29e 312 */
f6b42f9c
MD
313 cmm_barrier();
314
315 /*
316 * Adding a cmm_smp_mb() which is _not_ formally required, but makes the
317 * model easier to understand. It does not have a big performance impact
318 * anyway, given this is the write-side.
319 */
320 cmm_smp_mb();
321
322 /*
323 * Wait for readers to observe new parity or be quiescent.
731ccb96
MD
324 * wait_for_readers() can release and grab again rcu_registry_lock
325 * interally.
f6b42f9c 326 */
708d89f0
MD
327 wait_for_readers(&cur_snap_readers, NULL, &qsreaders);
328
329 /*
330 * Put quiescent reader list back into registry.
331 */
332 cds_list_splice(&qsreaders, &registry);
2dfb8b5e 333out:
731ccb96 334 mutex_unlock(&rcu_registry_lock);
6abb4bd5 335 mutex_unlock(&rcu_gp_lock);
bf6822a6 336 urcu_wake_all_waiters(&waiters);
6362f68f 337gp_end:
bc49c323
MD
338 /*
339 * Finish waiting for reader threads before letting the old ptr being
47d2f29e
MD
340 * freed.
341 */
bc49c323 342 if (was_online)
4477a870 343 urcu_qsbr_thread_online();
27b940e7
PB
344 else
345 cmm_smp_mb();
47d2f29e 346}
b39e1761 347#else /* !(CAA_BITS_PER_LONG < 64) */
4477a870 348void urcu_qsbr_synchronize_rcu(void)
9f1621ca 349{
708d89f0 350 CDS_LIST_HEAD(qsreaders);
f0f7dbdd 351 unsigned long was_online;
bf6822a6
MD
352 DEFINE_URCU_WAIT_NODE(wait, URCU_WAIT_WAITING);
353 struct urcu_waiters waiters;
ff2f67a0 354
4477a870 355 was_online = urcu_qsbr_read_ongoing();
ff2f67a0
MD
356
357 /*
358 * Mark the writer thread offline to make sure we don't wait for
5e77fc1f
PM
359 * our own quiescent state. This allows using synchronize_rcu()
360 * in threads registered as readers.
ff2f67a0 361 */
27b940e7 362 if (was_online)
4477a870 363 urcu_qsbr_thread_offline();
27b940e7
PB
364 else
365 cmm_smp_mb();
ff2f67a0 366
6362f68f 367 /*
bf6822a6 368 * Add ourself to gp_waiters queue of threads awaiting to wait
6362f68f 369 * for a grace period. Proceed to perform the grace period only
bf6822a6 370 * if we are the first thread added into the queue.
6362f68f 371 */
bf6822a6
MD
372 if (urcu_wait_add(&gp_waiters, &wait) != 0) {
373 /* Not first in queue: will be awakened by another thread. */
374 urcu_adaptative_busy_wait(&wait);
6362f68f
MD
375 goto gp_end;
376 }
bf6822a6
MD
377 /* We won't need to wake ourself up */
378 urcu_wait_set_state(&wait, URCU_WAIT_RUNNING);
6362f68f 379
6abb4bd5 380 mutex_lock(&rcu_gp_lock);
6362f68f
MD
381
382 /*
bf6822a6 383 * Move all waiters into our local queue.
6362f68f 384 */
bf6822a6 385 urcu_move_waiters(&waiters, &gp_waiters);
6362f68f 386
731ccb96
MD
387 mutex_lock(&rcu_registry_lock);
388
16aa9ee8 389 if (cds_list_empty(&registry))
2dfb8b5e 390 goto out;
f6b42f9c
MD
391
392 /* Increment current G.P. */
4477a870 393 CMM_STORE_SHARED(urcu_qsbr_gp.ctr, urcu_qsbr_gp.ctr + URCU_QSBR_GP_CTR);
f6b42f9c
MD
394
395 /*
4477a870 396 * Must commit urcu_qsbr_gp.ctr update to memory before waiting for
f6b42f9c
MD
397 * quiescent state. Failure to do so could result in the writer
398 * waiting forever while new readers are always accessing data
4477a870
MD
399 * (no progress). Enforce compiler-order of store to urcu_qsbr_gp.ctr
400 * before load URCU_TLS(urcu_qsbr_reader).ctr.
f6b42f9c
MD
401 */
402 cmm_barrier();
403
404 /*
405 * Adding a cmm_smp_mb() which is _not_ formally required, but makes the
406 * model easier to understand. It does not have a big performance impact
407 * anyway, given this is the write-side.
408 */
409 cmm_smp_mb();
410
411 /*
412 * Wait for readers to observe new count of be quiescent.
731ccb96
MD
413 * wait_for_readers() can release and grab again rcu_registry_lock
414 * interally.
f6b42f9c 415 */
708d89f0
MD
416 wait_for_readers(&registry, NULL, &qsreaders);
417
418 /*
419 * Put quiescent reader list back into registry.
420 */
421 cds_list_splice(&qsreaders, &registry);
2dfb8b5e 422out:
731ccb96 423 mutex_unlock(&rcu_registry_lock);
6abb4bd5 424 mutex_unlock(&rcu_gp_lock);
bf6822a6 425 urcu_wake_all_waiters(&waiters);
6362f68f 426gp_end:
ff2f67a0 427 if (was_online)
4477a870 428 urcu_qsbr_thread_online();
27b940e7
PB
429 else
430 cmm_smp_mb();
9f1621ca 431}
b39e1761 432#endif /* !(CAA_BITS_PER_LONG < 64) */
ce28e67a 433URCU_ATTR_ALIAS("urcu_qsbr_synchronize_rcu")
4477a870 434void synchronize_rcu_qsbr();
9f1621ca
MD
435
436/*
437 * library wrappers to be used by non-LGPL compatible source code.
438 */
439
4477a870 440void urcu_qsbr_read_lock(void)
9f1621ca 441{
4477a870 442 _urcu_qsbr_read_lock();
9f1621ca 443}
ce28e67a 444URCU_ATTR_ALIAS("urcu_qsbr_read_lock") void rcu_read_lock_qsbr();
9f1621ca 445
4477a870 446void urcu_qsbr_read_unlock(void)
9f1621ca 447{
4477a870 448 _urcu_qsbr_read_unlock();
9f1621ca 449}
ce28e67a 450URCU_ATTR_ALIAS("urcu_qsbr_read_unlock") void rcu_read_unlock_qsbr();
9f1621ca 451
4477a870 452int urcu_qsbr_read_ongoing(void)
882f3357 453{
4477a870 454 return _urcu_qsbr_read_ongoing();
882f3357 455}
ce28e67a 456URCU_ATTR_ALIAS("urcu_qsbr_read_ongoing")
4477a870 457void rcu_read_ongoing_qsbr();
882f3357 458
4477a870 459void urcu_qsbr_quiescent_state(void)
7ac06cef 460{
4477a870 461 _urcu_qsbr_quiescent_state();
7ac06cef 462}
ce28e67a 463URCU_ATTR_ALIAS("urcu_qsbr_quiescent_state")
4477a870 464void rcu_quiescent_state_qsbr();
7ac06cef 465
4477a870 466void urcu_qsbr_thread_offline(void)
7ac06cef 467{
4477a870 468 _urcu_qsbr_thread_offline();
7ac06cef 469}
ce28e67a 470URCU_ATTR_ALIAS("urcu_qsbr_thread_offline")
4477a870 471void rcu_thread_offline_qsbr();
7ac06cef 472
4477a870 473void urcu_qsbr_thread_online(void)
7ac06cef 474{
4477a870 475 _urcu_qsbr_thread_online();
7ac06cef 476}
ce28e67a 477URCU_ATTR_ALIAS("urcu_qsbr_thread_online")
4477a870 478void rcu_thread_online_qsbr();
7ac06cef 479
4477a870 480void urcu_qsbr_register_thread(void)
9f1621ca 481{
4477a870
MD
482 URCU_TLS(urcu_qsbr_reader).tid = pthread_self();
483 assert(URCU_TLS(urcu_qsbr_reader).ctr == 0);
4f8e3380 484
731ccb96 485 mutex_lock(&rcu_registry_lock);
4477a870
MD
486 assert(!URCU_TLS(urcu_qsbr_reader).registered);
487 URCU_TLS(urcu_qsbr_reader).registered = 1;
488 cds_list_add(&URCU_TLS(urcu_qsbr_reader).node, &registry);
731ccb96 489 mutex_unlock(&rcu_registry_lock);
4477a870 490 _urcu_qsbr_thread_online();
9f1621ca 491}
ce28e67a 492URCU_ATTR_ALIAS("urcu_qsbr_register_thread")
4477a870 493void rcu_register_thread_qsbr();
9f1621ca 494
4477a870 495void urcu_qsbr_unregister_thread(void)
9f1621ca 496{
76f3022f
MD
497 /*
498 * We have to make the thread offline otherwise we end up dealocking
499 * with a waiting writer.
500 */
4477a870
MD
501 _urcu_qsbr_thread_offline();
502 assert(URCU_TLS(urcu_qsbr_reader).registered);
503 URCU_TLS(urcu_qsbr_reader).registered = 0;
731ccb96 504 mutex_lock(&rcu_registry_lock);
4477a870 505 cds_list_del(&URCU_TLS(urcu_qsbr_reader).node);
731ccb96 506 mutex_unlock(&rcu_registry_lock);
9f1621ca 507}
ce28e67a 508URCU_ATTR_ALIAS("urcu_qsbr_unregister_thread")
4477a870 509void rcu_unregister_thread_qsbr();
f6d18c64 510
4477a870 511void urcu_qsbr_exit(void)
f6d18c64 512{
01cadde4
MD
513 /*
514 * Assertion disabled because call_rcu threads are now rcu
515 * readers, and left running at exit.
516 * assert(cds_list_empty(&registry));
517 */
f6d18c64 518}
ce28e67a 519URCU_ATTR_ALIAS("urcu_qsbr_exit") void rcu_exit_qsbr();
5e77fc1f 520
5e6b23a6 521DEFINE_RCU_FLAVOR(rcu_flavor);
4477a870 522DEFINE_RCU_FLAVOR_ALIAS(rcu_flavor, alias_rcu_flavor);
541d828d 523
5e77fc1f 524#include "urcu-call-rcu-impl.h"
0376e7b2 525#include "urcu-defer-impl.h"
This page took 0.105573 seconds and 4 git commands to generate.