lkml.org 
[lkml]   [2010]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 2/3] input: use input_mutex instead of BKL when opening input device
    Date
    On Tuesday 09 March 2010, Thadeu Lima de Souza Cascardo wrote:
    > There are three types of input character devices: mousedev, joydev and
    > evdev. They all use the same major device and, then, their opening is
    > multiplexed in input_open_file.
    >
    > After the BKL pushdown, this multiplexing is protected by the BKL. But
    > there's already a mutex used for adding and removing to the table
    > indexed by input_open_file.
    >
    > So, we use this mutex instead of the BKL. Since it will call the
    > handlers' open function under the mutex, I've checked that the current
    > functions do not call input_{un,}register_{handler,device}, which are
    > the only other functions to take the mutex.
    >
    > Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>

    Acked-by: Arnd Bergmann <arnd@arndb.de>


    \
     
     \ /
      Last update: 2010-03-09 21:09    [W:0.027 / U:1.732 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site