Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141049
b: refs/heads/master
c: cbe2829
h: refs/heads/master
i:
  141047: ed38a74
v: v3
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Mar 21, 2009
1 parent b28f815 commit 499f3f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3c289ba7c320560ee74979a8895141c829046a2d
refs/heads/master: cbe28296eb1ac441b35cf45804d0ae808add7dd1
6 changes: 3 additions & 3 deletions trunk/kernel/trace/blktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,16 +468,16 @@ int do_blk_trace_setup(struct request_queue *q, char *name, dev_t dev,
bt->pid = buts->pid;
bt->trace_state = Blktrace_setup;

if (atomic_add_return(1, &blk_probes_ref) == 1)
blk_register_tracepoints();

ret = -EBUSY;
old_bt = xchg(&q->blk_trace, bt);
if (old_bt) {
(void) xchg(&q->blk_trace, old_bt);
goto err;
}

if (atomic_add_return(1, &blk_probes_ref) == 1)
blk_register_tracepoints();

return 0;
err:
if (bt) {
Expand Down

0 comments on commit 499f3f8

Please sign in to comment.