]> git.baikalelectronics.ru Git - kernel.git/commit
Input: remove BKL, fix input_open_file() locking
authorArnd Bergmann <arnd@arndb.de>
Wed, 10 Mar 2010 04:38:48 +0000 (20:38 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 10 Mar 2010 06:05:57 +0000 (22:05 -0800)
commite1e83b00b2e8fe23af7c4fb3ea95f29985f71dec
tree719c9f14280ca717e1651653e892179fb304590a
parent6764f33cd3179447e1aec25e2cf9b5b385a47051
Input: remove BKL, fix input_open_file() locking

Holding the BKL in input_open_file seems pointless because it does not
protect against updates of input_table, and all open functions from the
underlying drivers have proper mutex locking.

This makes input_open_file take the input_mutex when accessing
the table and no lock when calling into the lower function.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input.c