Skip to content

tracing: open/delete fixes

Oleg Nesterov lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 13 repliesIn review
  2. v16 patches 14 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tracing: Turn event/id->i_private into call->event.typekernel/trace/trace_events.c+12 -51 reply
2/6tracing: Change event_enable/disable_read() to verify i_private != NULLkernel/trace/trace_events.c+20 -112 replies
3/6tracing: Change event_filter_read/write to verify i_private != NULLkernel/trace/trace_events.c kernel/trace/trace_events_filter.c+25 -201 reply
4/6tracing: Change f_start() to take event_mutex and verify i_private != NULLkernel/trace/trace_events.c+9 -41 reply
5/6tracing: Introduce remove_event_file_dir()kernel/trace/trace_events.c+23 -241 reply
6/6tracing: Change remove_event_file_dir() to clear "d_subdirs"->i_privatekernel/trace/trace_events.c+9 -327 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchMasami Hiramatsu
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] tracing: open/delete fixes

Hello.

Testing: seems to work, but assumes that debugs was fixed too. Hopefully "debugfs: debugfs_remove_recursive() must not rely on list_empty(d_subdirs)" is fine.

(We should probably make debugfs_remove_recursive() to return the error
and trace_events.c should warn if it fails)

However: I am still testing this patches, so this is still mostly for review. I'll report if I find anything, but to remind we have other bugs which need more fixes. And in fact I need to re-read this series to convince myself it should work, I was distracted by the unexpected problem in debugfs.

Changes: a lot but all cosmetic, addresses the comments from Steven.

Steven, 1/6 was not changed, I assume you agreed with my reply.

Masami, I'll appreciate your review ;)

Oleg.

 kernel/trace/trace_events.c        |  155 +++++++++++++++++++-----------------
 kernel/trace/trace_events_filter.c |   17 ++---
 2 files changed, 87 insertions(+), 85 deletions(-)