diff options
Diffstat (limited to 'kernel/srcu.c')
-rw-r--r-- | kernel/srcu.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/srcu.c b/kernel/srcu.c index 97c465ebd844..de9074047c92 100644 --- a/kernel/srcu.c +++ b/kernel/srcu.c | |||
@@ -34,6 +34,10 @@ | |||
34 | #include <linux/delay.h> | 34 | #include <linux/delay.h> |
35 | #include <linux/srcu.h> | 35 | #include <linux/srcu.h> |
36 | 36 | ||
37 | #include <trace/events/rcu.h> | ||
38 | |||
39 | #include "rcu.h" | ||
40 | |||
37 | /* | 41 | /* |
38 | * Initialize an rcu_batch structure to empty. | 42 | * Initialize an rcu_batch structure to empty. |
39 | */ | 43 | */ |
@@ -464,7 +468,9 @@ static void __synchronize_srcu(struct srcu_struct *sp, int trycount) | |||
464 | */ | 468 | */ |
465 | void synchronize_srcu(struct srcu_struct *sp) | 469 | void synchronize_srcu(struct srcu_struct *sp) |
466 | { | 470 | { |
467 | __synchronize_srcu(sp, SYNCHRONIZE_SRCU_TRYCOUNT); | 471 | __synchronize_srcu(sp, rcu_expedited |
472 | ? SYNCHRONIZE_SRCU_EXP_TRYCOUNT | ||
473 | : SYNCHRONIZE_SRCU_TRYCOUNT); | ||
468 | } | 474 | } |
469 | EXPORT_SYMBOL_GPL(synchronize_srcu); | 475 | EXPORT_SYMBOL_GPL(synchronize_srcu); |
470 | 476 | ||