lkml.org 
[lkml]   [2010]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 08/10] tty: untangle locking of wait_until_sent
Arnd Bergmann wrote:
> diff --git a/drivers/char/amiserial.c b/drivers/char/amiserial.c
> index 5bd382e..3c0231a 100644
> --- a/drivers/char/amiserial.c
> +++ b/drivers/char/amiserial.c
> @@ -1527,6 +1527,7 @@ static void rs_wait_until_sent(struct tty_struct *tty, int timeout)
> {
> struct async_struct * info = tty->driver_data;
> unsigned long orig_jiffies, char_time;
> + int tty_was_locked = tty_locked();
> int lsr;
>
> if (serial_paranoia_check(info, tty->name, "rs_wait_until_sent"))
> @@ -1578,7 +1584,8 @@ static void rs_wait_until_sent(struct tty_struct *tty, int timeout)
> break;
> }
> __set_current_state(TASK_RUNNING);
> - tty_unlock();
> + if (!tty_was_locked())

tty_was_locked is not a function.


Daniel K.


\
 
 \ /
  Last update: 2010-05-16 05:19    [W:0.144 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site