From: Steven Rostedt Date: Tue, 7 Aug 2012 20:14:16 +0000 (-0400) Subject: tracing: Add rmdir to remove multibuffer instances X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~134^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c8916c34203734d3b05953ebace52d7c2969f16;p=pandora-kernel.git tracing: Add rmdir to remove multibuffer instances Add a method to the hijacked dentry descriptor of the "instances" directory to allow for rmdir to remove an instance of a multibuffer. Example: cd /debug/tracing/instances mkdir hello ls hello/ rmdir hello ls Like the mkdir method, the i_mutex is dropped for the instances directory. The instances directory is created at boot up and can not be renamed or removed. The trace_types_lock mutex is used to synchronize adding and removing of instances. I've run several stress tests with different threads trying to create and delete directories of the same name, and it has stood up fine. Cc: Al Viro Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed