aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/blktrace.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-09-06 00:11:38 -0400
committerIngo Molnar <mingo@elte.hu>2009-09-06 00:11:42 -0400
commited011b22ce567eabefa9ea571d3721c10ecd0553 (patch)
treec7aee6684613075c772388a99a9137014549434e /kernel/trace/blktrace.c
parent85bac32c4a52c592b857f2c360cc5ec93a097d70 (diff)
parente07cccf4046978df10f2e13fe2b99b2f9b3a65db (diff)
Merge commit 'v2.6.31-rc9' into tracing/core
Merge reason: move from -rc5 to -rc9. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/blktrace.c')
-rw-r--r--kernel/trace/blktrace.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c
index 243bafc2ec90..3eb159c277c8 100644
--- a/kernel/trace/blktrace.c
+++ b/kernel/trace/blktrace.c
@@ -271,8 +271,8 @@ static void blk_trace_free(struct blk_trace *bt)
271{ 271{
272 debugfs_remove(bt->msg_file); 272 debugfs_remove(bt->msg_file);
273 debugfs_remove(bt->dropped_file); 273 debugfs_remove(bt->dropped_file);
274 debugfs_remove(bt->dir);
275 relay_close(bt->rchan); 274 relay_close(bt->rchan);
275 debugfs_remove(bt->dir);
276 free_percpu(bt->sequence); 276 free_percpu(bt->sequence);
277 free_percpu(bt->msg_data); 277 free_percpu(bt->msg_data);
278 kfree(bt); 278 kfree(bt);
@@ -382,18 +382,8 @@ static int blk_subbuf_start_callback(struct rchan_buf *buf, void *subbuf,
382 382
383static int blk_remove_buf_file_callback(struct dentry *dentry) 383static int blk_remove_buf_file_callback(struct dentry *dentry)
384{ 384{
385 struct dentry *parent = dentry->d_parent;
386 debugfs_remove(dentry); 385 debugfs_remove(dentry);
387 386
388 /*
389 * this will fail for all but the last file, but that is ok. what we
390 * care about is the top level buts->name directory going away, when
391 * the last trace file is gone. Then we don't have to rmdir() that
392 * manually on trace stop, so it nicely solves the issue with
393 * force killing of running traces.
394 */
395
396 debugfs_remove(parent);
397 return 0; 387 return 0;
398} 388}
399 389