From: Steven Rostedt Date: Mon, 16 Mar 2009 23:20:15 +0000 (-0400) Subject: tracing: protect reader of cmdline output X-Git-Tag: v2.6.30-rc1~2^2~29^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ca530852346be239b7c19e7bec5d2b78855bebe;p=pandora-kernel.git tracing: protect reader of cmdline output Impact: fix to one cause of incorrect comm outputs in trace The spinlock only protected the creation of a comm <=> pid pair. But it was possible that a reader could look up a pid, and get the wrong comm because it had no locking. This also required changing trace_find_cmdline to copy the comm cache and not just send back a pointer to it. Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed