Re: patch "TTY: remove tty_locked" added to tty tree

From: Jiri Slaby
Date: Tue Aug 23 2011 - 14:33:53 EST


This is a multi-part message in MIME format.On 08/23/2011 07:36 PM, gregkh@xxxxxxx wrote:
> diff --git a/include/linux/tty.h b/include/linux/tty.h
> index 44bc0c5..6d5eceb 100644
> --- a/include/linux/tty.h
> +++ b/include/linux/tty.h
> @@ -600,8 +600,6 @@ extern long vt_compat_ioctl(struct tty_struct *tty,
> /* functions for preparation of BKL removal */
> extern void __lockfunc tty_lock(void) __acquires(tty_lock);
> extern void __lockfunc tty_unlock(void) __releases(tty_lock);
> -extern struct task_struct *__big_tty_mutex_owner;
> -#define tty_locked() (current == __big_tty_mutex_owner)

It looks like I need tty_locked to fix system stalls in
tty_wait_until_sent in the end. Like with the patch attached. But if
someone finds another way to fix this in short-term, it would be great.

thanks,
--
js
suse labs