Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3326c1ce authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Frederic Weisbecker
Browse files

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: default avatarArnd 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: default avatarFrederic Weisbecker <fweisbec@gmail.com>
parent 6cc8a7c1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2645,6 +2645,7 @@ static int perf_fasync(int fd, struct file *filp, int on)
}

static const struct file_operations perf_fops = {
	.llseek			= no_llseek,
	.release		= perf_release,
	.read			= perf_read,
	.poll			= perf_poll,