[for-next][PATCH 7/7] tracing: Move locking of trace_cmdline_lock into start/stop seq calls

2014-05-30 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" With the conversion of the saved_cmdlines output to use seq_read, there is now a race between accessing the values of the saved_cmdlines and the writing to them. The trace_cmdline_lock needs to be taken at the start and stop of the seq calls. A new

[for-next][PATCH 7/7] tracing: Move locking of trace_cmdline_lock into start/stop seq calls

2014-05-30 Thread Steven Rostedt
From: Steven Rostedt (Red Hat) rost...@goodmis.org With the conversion of the saved_cmdlines output to use seq_read, there is now a race between accessing the values of the saved_cmdlines and the writing to them. The trace_cmdline_lock needs to be taken at the start and stop of the seq calls. A