Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348808
b: refs/heads/master
c: 250bfd3
h: refs/heads/master
v: v3
  • Loading branch information
Liu Bo authored and Steven Rostedt committed Jan 14, 2013
1 parent f7c1c2a commit 43ea6b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 2df8f8a6a897ebf4c5613b5be6103d33b2a21520
refs/heads/master: 250bfd3d8e7e19cb649dd94689f0af2ce3474060
4 changes: 2 additions & 2 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -3454,15 +3454,15 @@ static int tracing_wait_pipe(struct file *filp)
return -EINTR;

/*
* We block until we read something and tracing is enabled.
* We block until we read something and tracing is disabled.
* We still block if tracing is disabled, but we have never
* read anything. This allows a user to cat this file, and
* then enable tracing. But after we have read something,
* we give an EOF when tracing is again disabled.
*
* iter->pos will be 0 if we haven't read anything.
*/
if (tracing_is_enabled() && iter->pos)
if (!tracing_is_enabled() && iter->pos)
break;
}

Expand Down

0 comments on commit 43ea6b6

Please sign in to comment.