Fix: deadlock when thread join is issued in read-side C.S.
[urcu.git] / urcu.c
CommitLineData
b257a10b
MD
1/*
2 * urcu.c
3 *
4 * Userspace RCU library
5 *
6982d6d7 6 * Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
af02d47e 7 * Copyright (c) 2009 Paul E. McKenney, IBM Corporation.
b257a10b 8 *
af02d47e
MD
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
54843abc
PM
22 *
23 * IBM's contributions to this file may be relicensed under LGPLv2 or later.
b257a10b
MD
24 */
25
fdf01eed 26#define _BSD_SOURCE
c1d2c60b 27#define _GNU_SOURCE
71c811bf 28#define _LGPL_SOURCE
27b012e2
MD
29#include <stdio.h>
30#include <pthread.h>
31#include <signal.h>
32#include <assert.h>
f69f195a 33#include <stdlib.h>
6d841bc2 34#include <stdint.h>
f69f195a 35#include <string.h>
09a9f986 36#include <errno.h>
e8043c1b 37#include <poll.h>
27b012e2 38
d73fb81f 39#include "urcu/wfcqueue.h"
57760d44 40#include "urcu/map/urcu.h"
af7c2dbe 41#include "urcu/static/urcu.h"
618b2595 42#include "urcu-pointer.h"
bd252a04 43#include "urcu/tls-compat.h"
71c811bf 44
4a6d7378 45#include "urcu-die.h"
5bffdd5d 46#include "urcu-wait.h"
4a6d7378 47
121a5d44 48/* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
71c811bf 49#undef _LGPL_SOURCE
27b012e2 50#include "urcu.h"
71c811bf 51#define _LGPL_SOURCE
27b012e2 52
3a71751e
PB
53/*
54 * If a reader is really non-cooperative and refuses to commit its
55 * rcu_active_readers count to memory (there is no barrier in the reader
9340c38d 56 * per-se), kick it after 10 loops waiting for it.
3a71751e 57 */
9340c38d 58#define KICK_READER_LOOPS 10
3a71751e
PB
59
60/*
61 * Active attempts to check for reader Q.S. before calling futex().
62 */
63#define RCU_QS_ACTIVE_ATTEMPTS 100
64
553b7eb9
MD
65/*
66 * RCU_MEMBARRIER is only possibly available on Linux.
67 */
68#if defined(RCU_MEMBARRIER) && defined(__linux__)
9ba261bd 69#include <urcu/syscall-compat.h>
553b7eb9
MD
70#endif
71
72/* If the headers do not support SYS_membarrier, fall back on RCU_MB */
73#ifdef SYS_membarrier
74# define membarrier(...) syscall(SYS_membarrier, __VA_ARGS__)
75#else
76# define membarrier(...) -ENOSYS
77#endif
78
79#define MEMBARRIER_EXPEDITED (1 << 0)
80#define MEMBARRIER_DELAYED (1 << 1)
81#define MEMBARRIER_QUERY (1 << 16)
82
fdf01eed 83#ifdef RCU_MEMBARRIER
834a45ba 84static int init_done;
1de4df4b 85int rcu_has_sys_membarrier;
834a45ba 86
02be5561 87void __attribute__((constructor)) rcu_init(void);
fdf01eed
MD
88#endif
89
90#ifdef RCU_MB
02be5561 91void rcu_init(void)
e90a6e9c
MD
92{
93}
94#endif
8a5fb4c9 95
fdf01eed
MD
96#ifdef RCU_SIGNAL
97static int init_done;
98
99void __attribute__((constructor)) rcu_init(void);
100void __attribute__((destructor)) rcu_exit(void);
101#endif
102
731ccb96
MD
103/*
104 * rcu_gp_lock ensures mutual exclusion between threads calling
105 * synchronize_rcu().
106 */
6abb4bd5 107static pthread_mutex_t rcu_gp_lock = PTHREAD_MUTEX_INITIALIZER;
731ccb96
MD
108/*
109 * rcu_registry_lock ensures mutual exclusion between threads
110 * registering and unregistering themselves to/from the registry, and
111 * with threads reading that registry from synchronize_rcu(). However,
112 * this lock is not held all the way through the completion of awaiting
113 * for the grace period. It is sporadically released between iterations
114 * on the registry.
115 * rcu_registry_lock may nest inside rcu_gp_lock.
116 */
117static pthread_mutex_t rcu_registry_lock = PTHREAD_MUTEX_INITIALIZER;
4de0cd31 118struct rcu_gp rcu_gp = { .ctr = RCU_GP_COUNT };
27b012e2 119
b0d5e790
MD
120/*
121 * Written to only by each individual reader. Read by both the reader and the
122 * writers.
123 */
bd252a04 124DEFINE_URCU_TLS(struct rcu_reader, rcu_reader);
27b012e2 125
16aa9ee8 126static CDS_LIST_HEAD(registry);
27b012e2 127
5bffdd5d
MD
128/*
129 * Queue keeping threads awaiting to wait for a grace period. Contains
130 * struct gp_waiters_thread objects.
131 */
132static DEFINE_URCU_WAIT_QUEUE(gp_waiters);
133
6abb4bd5 134static void mutex_lock(pthread_mutex_t *mutex)
41718ff9
MD
135{
136 int ret;
09a9f986
PM
137
138#ifndef DISTRUST_SIGNALS_EXTREME
6abb4bd5 139 ret = pthread_mutex_lock(mutex);
4a6d7378
MD
140 if (ret)
141 urcu_die(ret);
09a9f986 142#else /* #ifndef DISTRUST_SIGNALS_EXTREME */
6abb4bd5 143 while ((ret = pthread_mutex_trylock(mutex)) != 0) {
4a6d7378
MD
144 if (ret != EBUSY && ret != EINTR)
145 urcu_die(ret);
bd252a04 146 if (CMM_LOAD_SHARED(URCU_TLS(rcu_reader).need_mb)) {
5481ddb3 147 cmm_smp_mb();
bd252a04 148 _CMM_STORE_SHARED(URCU_TLS(rcu_reader).need_mb, 0);
5481ddb3 149 cmm_smp_mb();
09a9f986
PM
150 }
151 poll(NULL,0,10);
152 }
153#endif /* #else #ifndef DISTRUST_SIGNALS_EXTREME */
41718ff9
MD
154}
155
6abb4bd5 156static void mutex_unlock(pthread_mutex_t *mutex)
41718ff9
MD
157{
158 int ret;
159
6abb4bd5 160 ret = pthread_mutex_unlock(mutex);
4a6d7378
MD
161 if (ret)
162 urcu_die(ret);
41718ff9
MD
163}
164
fdf01eed 165#ifdef RCU_MEMBARRIER
25cc6d18 166static void smp_mb_master(int group)
fdf01eed 167{
1de4df4b 168 if (caa_likely(rcu_has_sys_membarrier))
553b7eb9 169 (void) membarrier(MEMBARRIER_EXPEDITED);
fdf01eed 170 else
5481ddb3 171 cmm_smp_mb();
fdf01eed
MD
172}
173#endif
174
02be5561 175#ifdef RCU_MB
25cc6d18 176static void smp_mb_master(int group)
40e140c9 177{
5481ddb3 178 cmm_smp_mb();
40e140c9 179}
fdf01eed
MD
180#endif
181
182#ifdef RCU_SIGNAL
78ff9419 183static void force_mb_all_readers(void)
27b012e2 184{
02be5561 185 struct rcu_reader *index;
e3b0cef0 186
27b012e2 187 /*
5481ddb3 188 * Ask for each threads to execute a cmm_smp_mb() so we can consider the
27b012e2
MD
189 * compiler barriers around rcu read lock as real memory barriers.
190 */
16aa9ee8 191 if (cds_list_empty(&registry))
27b012e2 192 return;
3a86deba 193 /*
5481ddb3 194 * pthread_kill has a cmm_smp_mb(). But beware, we assume it performs
157dca95 195 * a cache flush on architectures with non-coherent cache. Let's play
5481ddb3 196 * safe and don't assume anything : we use cmm_smp_mc() to make sure the
157dca95 197 * cache flush is enforced.
3a86deba 198 */
16aa9ee8 199 cds_list_for_each_entry(index, &registry, node) {
6cf3827c 200 CMM_STORE_SHARED(index->need_mb, 1);
02be5561 201 pthread_kill(index->tid, SIGRCU);
09a9f986 202 }
27b012e2
MD
203 /*
204 * Wait for sighandler (and thus mb()) to execute on every thread.
09a9f986
PM
205 *
206 * Note that the pthread_kill() will never be executed on systems
207 * that correctly deliver signals in a timely manner. However, it
208 * is not uncommon for kernels to have bugs that can result in
209 * lost or unduly delayed signals.
210 *
211 * If you are seeing the below pthread_kill() executing much at
212 * all, we suggest testing the underlying kernel and filing the
213 * relevant bug report. For Linux kernels, we recommend getting
214 * the Linux Test Project (LTP).
27b012e2 215 */
16aa9ee8 216 cds_list_for_each_entry(index, &registry, node) {
6cf3827c 217 while (CMM_LOAD_SHARED(index->need_mb)) {
02be5561 218 pthread_kill(index->tid, SIGRCU);
09a9f986
PM
219 poll(NULL, 0, 1);
220 }
221 }
5481ddb3 222 cmm_smp_mb(); /* read ->need_mb before ending the barrier */
27b012e2 223}
9d7e3f89 224
25cc6d18 225static void smp_mb_master(int group)
9d7e3f89
MD
226{
227 force_mb_all_readers();
228}
fdf01eed 229#endif /* #ifdef RCU_SIGNAL */
27b012e2 230
bc6c15bb
MD
231/*
232 * synchronize_rcu() waiting. Single thread.
233 */
cfe78e25 234static void wait_gp(void)
bc6c15bb 235{
cfe78e25 236 /* Read reader_gp before read futex */
25cc6d18 237 smp_mb_master(RCU_MB_GROUP);
ed1b099e
LJ
238 if (uatomic_read(&rcu_gp.futex) == -1)
239 futex_async(&rcu_gp.futex, FUTEX_WAIT, -1,
cfe78e25 240 NULL, NULL, 0);
bc6c15bb
MD
241}
242
731ccb96
MD
243/*
244 * Always called with rcu_registry lock held. Releases this lock between
245 * iterations and grabs it again. Holds the lock when it returns.
246 */
fd189fa5
MD
247static void wait_for_readers(struct cds_list_head *input_readers,
248 struct cds_list_head *cur_snap_readers,
249 struct cds_list_head *qsreaders)
27b012e2 250{
9340c38d 251 unsigned int wait_loops = 0;
02be5561 252 struct rcu_reader *index, *tmp;
9340c38d
MD
253#ifdef HAS_INCOHERENT_CACHES
254 unsigned int wait_gp_loops = 0;
255#endif /* HAS_INCOHERENT_CACHES */
27b012e2 256
40e140c9 257 /*
c9488684
MD
258 * Wait for each thread URCU_TLS(rcu_reader).ctr to either
259 * indicate quiescence (not nested), or observe the current
ed1b099e 260 * rcu_gp.ctr value.
27b012e2 261 */
cfe78e25 262 for (;;) {
5e81fed7
MD
263 if (wait_loops < RCU_QS_ACTIVE_ATTEMPTS)
264 wait_loops++;
9340c38d 265 if (wait_loops >= RCU_QS_ACTIVE_ATTEMPTS) {
ed1b099e 266 uatomic_dec(&rcu_gp.futex);
cfe78e25 267 /* Write futex before read reader_gp */
25cc6d18 268 smp_mb_master(RCU_MB_GROUP);
cfe78e25
MD
269 }
270
fd189fa5
MD
271 cds_list_for_each_entry_safe(index, tmp, input_readers, node) {
272 switch (rcu_reader_state(&index->ctr)) {
273 case RCU_READER_ACTIVE_CURRENT:
274 if (cur_snap_readers) {
275 cds_list_move(&index->node,
276 cur_snap_readers);
277 break;
278 }
279 /* Fall-through */
280 case RCU_READER_INACTIVE:
281 cds_list_move(&index->node, qsreaders);
282 break;
283 case RCU_READER_ACTIVE_OLD:
284 /*
285 * Old snapshot. Leaving node in
286 * input_readers will make us busy-loop
287 * until the snapshot becomes current or
288 * the reader becomes inactive.
289 */
290 break;
291 }
cfe78e25
MD
292 }
293
e8043c1b 294#ifndef HAS_INCOHERENT_CACHES
fd189fa5 295 if (cds_list_empty(input_readers)) {
9340c38d 296 if (wait_loops >= RCU_QS_ACTIVE_ATTEMPTS) {
cfe78e25 297 /* Read reader_gp before write futex */
25cc6d18 298 smp_mb_master(RCU_MB_GROUP);
ed1b099e 299 uatomic_set(&rcu_gp.futex, 0);
bc6c15bb 300 }
cfe78e25
MD
301 break;
302 } else {
731ccb96
MD
303 /* Temporarily unlock the registry lock. */
304 mutex_unlock(&rcu_registry_lock);
9340c38d 305 if (wait_loops >= RCU_QS_ACTIVE_ATTEMPTS)
cfe78e25
MD
306 wait_gp();
307 else
06f22bdb 308 caa_cpu_relax();
731ccb96
MD
309 /* Re-lock the registry lock before the next loop. */
310 mutex_lock(&rcu_registry_lock);
bc6c15bb 311 }
e8043c1b 312#else /* #ifndef HAS_INCOHERENT_CACHES */
27b012e2 313 /*
40e140c9 314 * BUSY-LOOP. Force the reader thread to commit its
bd252a04
MD
315 * URCU_TLS(rcu_reader).ctr update to memory if we wait
316 * for too long.
27b012e2 317 */
fd189fa5 318 if (cds_list_empty(input_readers)) {
9340c38d 319 if (wait_loops >= RCU_QS_ACTIVE_ATTEMPTS) {
cfe78e25 320 /* Read reader_gp before write futex */
25cc6d18 321 smp_mb_master(RCU_MB_GROUP);
ed1b099e 322 uatomic_set(&rcu_gp.futex, 0);
cfe78e25
MD
323 }
324 break;
325 } else {
9340c38d 326 if (wait_gp_loops == KICK_READER_LOOPS) {
25cc6d18 327 smp_mb_master(RCU_MB_GROUP);
9340c38d
MD
328 wait_gp_loops = 0;
329 }
731ccb96
MD
330 /* Temporarily unlock the registry lock. */
331 mutex_unlock(&rcu_registry_lock);
9340c38d
MD
332 if (wait_loops >= RCU_QS_ACTIVE_ATTEMPTS) {
333 wait_gp();
334 wait_gp_loops++;
335 } else {
06f22bdb 336 caa_cpu_relax();
40e140c9 337 }
731ccb96
MD
338 /* Re-lock the registry lock before the next loop. */
339 mutex_lock(&rcu_registry_lock);
40e140c9 340 }
e8043c1b 341#endif /* #else #ifndef HAS_INCOHERENT_CACHES */
27b012e2 342 }
27b012e2
MD
343}
344
9598a481 345void synchronize_rcu(void)
2bc59bd7 346{
fd189fa5
MD
347 CDS_LIST_HEAD(cur_snap_readers);
348 CDS_LIST_HEAD(qsreaders);
5bffdd5d
MD
349 DEFINE_URCU_WAIT_NODE(wait, URCU_WAIT_WAITING);
350 struct urcu_waiters waiters;
351
352 /*
353 * Add ourself to gp_waiters queue of threads awaiting to wait
354 * for a grace period. Proceed to perform the grace period only
355 * if we are the first thread added into the queue.
356 * The implicit memory barrier before urcu_wait_add()
357 * orders prior memory accesses of threads put into the wait
358 * queue before their insertion into the wait queue.
359 */
360 if (urcu_wait_add(&gp_waiters, &wait) != 0) {
361 /* Not first in queue: will be awakened by another thread. */
362 urcu_adaptative_busy_wait(&wait);
363 /* Order following memory accesses after grace period. */
364 cmm_smp_mb();
365 return;
366 }
367 /* We won't need to wake ourself up */
368 urcu_wait_set_state(&wait, URCU_WAIT_RUNNING);
fd189fa5 369
6abb4bd5 370 mutex_lock(&rcu_gp_lock);
135530fd 371
5bffdd5d
MD
372 /*
373 * Move all waiters into our local queue.
374 */
375 urcu_move_waiters(&waiters, &gp_waiters);
376
731ccb96
MD
377 mutex_lock(&rcu_registry_lock);
378
16aa9ee8 379 if (cds_list_empty(&registry))
2dfb8b5e
MD
380 goto out;
381
731ccb96
MD
382 /*
383 * All threads should read qparity before accessing data structure
384 * where new ptr points to. Must be done within rcu_registry_lock
385 * because it iterates on reader threads.
386 */
9598a481 387 /* Write new ptr before changing the qparity */
25cc6d18 388 smp_mb_master(RCU_MB_GROUP);
9598a481 389
9598a481 390 /*
c9488684 391 * Wait for readers to observe original parity or be quiescent.
731ccb96
MD
392 * wait_for_readers() can release and grab again rcu_registry_lock
393 * interally.
9598a481 394 */
fd189fa5 395 wait_for_readers(&registry, &cur_snap_readers, &qsreaders);
9598a481
MD
396
397 /*
c9488684 398 * Must finish waiting for quiescent state for original parity before
ed1b099e 399 * committing next rcu_gp.ctr update to memory. Failure to do so could
d40fde2c
MD
400 * result in the writer waiting forever while new readers are always
401 * accessing data (no progress). Enforce compiler-order of load
ed1b099e 402 * URCU_TLS(rcu_reader).ctr before store to rcu_gp.ctr.
9598a481 403 */
5481ddb3 404 cmm_barrier();
9598a481 405
5dba80f9 406 /*
5481ddb3 407 * Adding a cmm_smp_mb() which is _not_ formally required, but makes the
5dba80f9
MD
408 * model easier to understand. It does not have a big performance impact
409 * anyway, given this is the write-side.
410 */
5481ddb3 411 cmm_smp_mb();
67c2d80b 412
c9488684 413 /* Switch parity: 0 -> 1, 1 -> 0 */
ed1b099e 414 CMM_STORE_SHARED(rcu_gp.ctr, rcu_gp.ctr ^ RCU_GP_CTR_PHASE);
c9488684
MD
415
416 /*
ed1b099e 417 * Must commit rcu_gp.ctr update to memory before waiting for quiescent
c9488684
MD
418 * state. Failure to do so could result in the writer waiting forever
419 * while new readers are always accessing data (no progress). Enforce
ed1b099e 420 * compiler-order of store to rcu_gp.ctr before load rcu_reader ctr.
c9488684
MD
421 */
422 cmm_barrier();
423
424 /*
425 *
426 * Adding a cmm_smp_mb() which is _not_ formally required, but makes the
427 * model easier to understand. It does not have a big performance impact
428 * anyway, given this is the write-side.
429 */
430 cmm_smp_mb();
431
9598a481 432 /*
c9488684 433 * Wait for readers to observe new parity or be quiescent.
731ccb96
MD
434 * wait_for_readers() can release and grab again rcu_registry_lock
435 * interally.
9598a481 436 */
fd189fa5
MD
437 wait_for_readers(&cur_snap_readers, NULL, &qsreaders);
438
439 /*
440 * Put quiescent reader list back into registry.
441 */
442 cds_list_splice(&qsreaders, &registry);
9598a481 443
731ccb96
MD
444 /*
445 * Finish waiting for reader threads before letting the old ptr
446 * being freed. Must be done within rcu_registry_lock because it
447 * iterates on reader threads.
448 */
25cc6d18 449 smp_mb_master(RCU_MB_GROUP);
2dfb8b5e 450out:
731ccb96 451 mutex_unlock(&rcu_registry_lock);
6abb4bd5 452 mutex_unlock(&rcu_gp_lock);
5bffdd5d
MD
453
454 /*
455 * Wakeup waiters only after we have completed the grace period
456 * and have ensured the memory barriers at the end of the grace
457 * period have been issued.
458 */
459 urcu_wake_all_waiters(&waiters);
2bc59bd7
PM
460}
461
121a5d44
MD
462/*
463 * library wrappers to be used by non-LGPL compatible source code.
464 */
465
466void rcu_read_lock(void)
467{
468 _rcu_read_lock();
469}
470
471void rcu_read_unlock(void)
472{
473 _rcu_read_unlock();
474}
475
882f3357
MD
476int rcu_read_ongoing(void)
477{
478 return _rcu_read_ongoing();
479}
480
121a5d44 481void rcu_register_thread(void)
27b012e2 482{
bd252a04
MD
483 URCU_TLS(rcu_reader).tid = pthread_self();
484 assert(URCU_TLS(rcu_reader).need_mb == 0);
485 assert(!(URCU_TLS(rcu_reader).ctr & RCU_GP_CTR_NEST_MASK));
02be5561 486
731ccb96 487 mutex_lock(&rcu_registry_lock);
02be5561 488 rcu_init(); /* In case gcc does not support constructor attribute */
bd252a04 489 cds_list_add(&URCU_TLS(rcu_reader).node, &registry);
731ccb96 490 mutex_unlock(&rcu_registry_lock);
27b012e2
MD
491}
492
121a5d44 493void rcu_unregister_thread(void)
27b012e2 494{
731ccb96 495 mutex_lock(&rcu_registry_lock);
bd252a04 496 cds_list_del(&URCU_TLS(rcu_reader).node);
731ccb96 497 mutex_unlock(&rcu_registry_lock);
27b012e2
MD
498}
499
fdf01eed
MD
500#ifdef RCU_MEMBARRIER
501void rcu_init(void)
502{
503 if (init_done)
504 return;
505 init_done = 1;
cf5271ee 506 if (!membarrier(MEMBARRIER_EXPEDITED | MEMBARRIER_QUERY))
1de4df4b 507 rcu_has_sys_membarrier = 1;
fdf01eed
MD
508}
509#endif
510
511#ifdef RCU_SIGNAL
02be5561 512static void sigrcu_handler(int signo, siginfo_t *siginfo, void *context)
27b012e2 513{
40e140c9 514 /*
5481ddb3
DG
515 * Executing this cmm_smp_mb() is the only purpose of this signal handler.
516 * It punctually promotes cmm_barrier() into cmm_smp_mb() on every thread it is
40e140c9
MD
517 * executed on.
518 */
5481ddb3 519 cmm_smp_mb();
bd252a04 520 _CMM_STORE_SHARED(URCU_TLS(rcu_reader).need_mb, 0);
5481ddb3 521 cmm_smp_mb();
27b012e2
MD
522}
523
8a5fb4c9 524/*
02be5561 525 * rcu_init constructor. Called when the library is linked, but also when
8a5fb4c9
MD
526 * reader threads are calling rcu_register_thread().
527 * Should only be called by a single thread at a given time. This is ensured by
731ccb96
MD
528 * holing the rcu_registry_lock from rcu_register_thread() or by running
529 * at library load time, which should not be executed by multiple
530 * threads nor concurrently with rcu_register_thread() anyway.
8a5fb4c9 531 */
02be5561 532void rcu_init(void)
27b012e2
MD
533{
534 struct sigaction act;
535 int ret;
536
8a5fb4c9
MD
537 if (init_done)
538 return;
539 init_done = 1;
540
02be5561 541 act.sa_sigaction = sigrcu_handler;
dd052bd3 542 act.sa_flags = SA_SIGINFO | SA_RESTART;
c297c21c 543 sigemptyset(&act.sa_mask);
02be5561 544 ret = sigaction(SIGRCU, &act, NULL);
4a6d7378
MD
545 if (ret)
546 urcu_die(errno);
27b012e2
MD
547}
548
02be5561 549void rcu_exit(void)
27b012e2 550{
71210954
MD
551 /*
552 * Don't unregister the SIGRCU signal handler anymore, because
553 * call_rcu threads could still be using it shortly before the
554 * application exits.
555 * Assertion disabled because call_rcu threads are now rcu
556 * readers, and left running at exit.
557 * assert(cds_list_empty(&registry));
558 */
27b012e2 559}
5e77fc1f 560
fdf01eed 561#endif /* #ifdef RCU_SIGNAL */
5e77fc1f 562
5e6b23a6 563DEFINE_RCU_FLAVOR(rcu_flavor);
541d828d 564
5e77fc1f 565#include "urcu-call-rcu-impl.h"
0376e7b2 566#include "urcu-defer-impl.h"
This page took 0.062282 seconds and 4 git commands to generate.