Skip to content

Commit 41775e2

Browse files
committed
procfs: Use generic_file_llseek in /proc/kmsg
No need to hold the bkl to seek here, none of the other fops callbacks use it. Use generic_file_llseek explicitly. Signed-off-by: Frederic Weisbecker <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: John Kacur <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Al Viro <[email protected]>
1 parent 34aacb2 commit 41775e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/proc/kmsg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ static const struct file_operations proc_kmsg_operations = {
5353
.poll = kmsg_poll,
5454
.open = kmsg_open,
5555
.release = kmsg_release,
56+
.llseek = generic_file_llseek,
5657
};
5758

5859
static int __init proc_kmsg_init(void)

0 commit comments

Comments
 (0)