Repository navigation
Commit da36840
tracing: Move pipe reference to trace array instead of current_tracer
[ Upstream commit 7ef282e ]
If a process has the trace_pipe open on a trace_array, the current tracer
for that trace array should not be changed. This was original enforced by a
global lock, but when instances were introduced, it was moved to the
current_trace. But this structure is shared by all instances, and a
trace_pipe is for a single instance. There's no reason that a process that
has trace_pipe open on one instance should prevent another instance from
changing its current tracer. Move the reference counter to the trace_array
instead.
This is marked as "Fixes" but is more of a clean up than a true fix.
Backport if you want, but its not critical.
Fixes: cf6ab6d ("tracing: Add ref count to tracer for when they are being read by pipe")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent d579cc1 commit da36840
2 files changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5887 | 5887 | | |
5888 | 5888 | | |
5889 | 5889 | | |
5890 | | - | |
| 5890 | + | |
5891 | 5891 | | |
5892 | 5892 | | |
5893 | 5893 | | |
| |||
6103 | 6103 | | |
6104 | 6104 | | |
6105 | 6105 | | |
6106 | | - | |
| 6106 | + | |
6107 | 6107 | | |
6108 | 6108 | | |
6109 | 6109 | | |
| |||
6122 | 6122 | | |
6123 | 6123 | | |
6124 | 6124 | | |
6125 | | - | |
| 6125 | + | |
6126 | 6126 | | |
6127 | 6127 | | |
6128 | 6128 | | |
| |||
7424 | 7424 | | |
7425 | 7425 | | |
7426 | 7426 | | |
7427 | | - | |
| 7427 | + | |
7428 | 7428 | | |
7429 | 7429 | | |
7430 | 7430 | | |
| |||
7525 | 7525 | | |
7526 | 7526 | | |
7527 | 7527 | | |
7528 | | - | |
| 7528 | + | |
7529 | 7529 | | |
7530 | 7530 | | |
7531 | 7531 | | |
| |||
8733 | 8733 | | |
8734 | 8734 | | |
8735 | 8735 | | |
8736 | | - | |
| 8736 | + | |
8737 | 8737 | | |
8738 | 8738 | | |
8739 | 8739 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| 359 | + | |
359 | 360 | | |
360 | 361 | | |
361 | 362 | | |
| |||
547 | 548 | | |
548 | 549 | | |
549 | 550 | | |
550 | | - | |
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| |||
0 commit comments