Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

input: __rcu annotations

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>

authored by

Arnd Bergmann and committed by
Paul E. McKenney
2be85279 5b22216e

+2 -2
+1 -1
drivers/input/evdev.c
··· 28 28 int minor; 29 29 struct input_handle handle; 30 30 wait_queue_head_t wait; 31 - struct evdev_client *grab; 31 + struct evdev_client __rcu *grab; 32 32 struct list_head client_list; 33 33 spinlock_t client_lock; /* protects client_list */ 34 34 struct mutex mutex;
+1 -1
include/linux/input.h
··· 1196 1196 int (*flush)(struct input_dev *dev, struct file *file); 1197 1197 int (*event)(struct input_dev *dev, unsigned int type, unsigned int code, int value); 1198 1198 1199 - struct input_handle *grab; 1199 + struct input_handle __rcu *grab; 1200 1200 1201 1201 spinlock_t event_lock; 1202 1202 struct mutex mutex;