diff options
author | Arnd Bergmann <arnd@relay.de.ibm.com> | 2010-03-23 14:09:33 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2010-04-04 09:27:58 -0400 |
commit | 3326c1ceee234e63160852720d48be8a8f7a6d08 (patch) | |
tree | 18aa2c9ebe2985c558e61c778f7a1e6cd8ab6393 | |
parent | 6cc8a7c1d8560c042f486b23318a6291569ab96b (diff) |
perf_event: Make perf fd non seekable
Perf_event does not need seeking, so prevent it in order to
get rid of default_llseek, which uses the BKL.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@elte.hu>
[drop the nonseekable_open, not needed for anon inodes]
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
-rw-r--r-- | kernel/perf_event.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c index 63fbce1c80b5..4aa50ff4efc0 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c | |||
@@ -2645,6 +2645,7 @@ static int perf_fasync(int fd, struct file *filp, int on) | |||
2645 | } | 2645 | } |
2646 | 2646 | ||
2647 | static const struct file_operations perf_fops = { | 2647 | static const struct file_operations perf_fops = { |
2648 | .llseek = no_llseek, | ||
2648 | .release = perf_release, | 2649 | .release = perf_release, |
2649 | .read = perf_read, | 2650 | .read = perf_read, |
2650 | .poll = perf_poll, | 2651 | .poll = perf_poll, |