Commit d0b24b4
ftrace: Prevent RCU stall on PREEMPT_VOLUNTARY kernels
The function match_records() may take a while due to a large
number of string comparisons, so when in PREEMPT_VOLUNTARY
kernels we could face RCU stalls due to that.
Add a cond_resched() to prevent that.
Link: https://lkml.kernel.org/r/[email protected]
Cc: Mark Rutland <[email protected]>
Suggested-by: Steven Rostedt <[email protected]>
Acked-by: Paul E. McKenney <[email protected]> # from RCU CPU stall warning perspective
Signed-off-by: Guilherme G. Piccoli <[email protected]>
Acked-by: Masami Hiramatsu (Google) <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>1 parent fb9f5ee commit d0b24b4
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4204 | 4204 | | |
4205 | 4205 | | |
4206 | 4206 | | |
| 4207 | + | |
4207 | 4208 | | |
4208 | 4209 | | |
4209 | 4210 | | |
| |||
0 commit comments