lkml.org 
[lkml]   [2008]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [RFC][PATCH] tty: remove the BKL in n_tty.c
    From
    Date
    Frederic Weisbecker <fweisbec@gmail.com> writes:
    >
    > +
    > +/*
    > + * This Mutex is used to replace a big kernel lock that protected
    > + * the access to tty->column.
    > + */
    > +static DEFINE_MUTEX(tty_column_mutex);

    I suppose Alan did it already, but the general rule when doing
    such changes is to lock data not code.

    -Andi

    --
    ak@linux.intel.com


    \
     
     \ /
      Last update: 2008-10-13 12:39    [W:2.327 / U:1.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site