diff options
author | 2008-10-15 13:16:18 +1100 | |
---|---|---|
committer | 2008-10-21 11:12:54 +1100 | |
commit | baf399273f2ea38e2fcbd4d0b6cc7ba7f7db43eb (patch) | |
tree | 02f5b1fcde3b32f3a64143c478c63685067d776e /net/unix/af_unix.c | |
parent | Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus (diff) | |
download | linux-dev-baf399273f2ea38e2fcbd4d0b6cc7ba7f7db43eb.tar.xz linux-dev-baf399273f2ea38e2fcbd4d0b6cc7ba7f7db43eb.zip |
powerpc/spufs: sputrace: Only enable logging on open(), prevent multiple openers
Currently, sputrace will start logging to the event buffer before the
log buffer has been open()ed. This results in a heap of "lost samples"
warnings if the sputrace file hasn't yet been opened.
Since the buffer is reset on open() anyway, there's no need to enable
logging when no-one has opened the log.
Because open clears the log, make it return EBUSY for mutliple open
calls.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions