From: Steven Rostedt (Red Hat) Date: Fri, 30 May 2014 14:49:46 +0000 (-0400) Subject: tracing: Move locking of trace_cmdline_lock into start/stop seq calls X-Git-Tag: omap-for-v3.16/fixes-against-rc1~80^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c27e756bc019ec1c11232893af036fdae720a97;p=pandora-kernel.git tracing: Move locking of trace_cmdline_lock into start/stop seq calls 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 __trace_find_cmdline() call is created to allow for the look up to happen without taking the lock. Fixes: 42584c81c5ad tracing: Have saved_cmdlines use the seq_read infrastructure Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed