[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2375c9f91003302137x7753a744pb2d2f0655738c7e4@mail.gmail.com>
Date: Wed, 31 Mar 2010 12:37:12 +0800
From: Américo Wang <xiyou.wangcong@...il.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: LKML <linux-kernel@...r.kernel.org>,
Alan Cox <alan@...rguk.ukuu.org.uk>, Greg KH <gregkh@...e.de>,
Frederic Weisbecker <fweisbec@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
Andrew Morton <akpm@...ux-foundation.org>,
John Kacur <jkacur@...hat.com>,
Al Viro <viro@...iv.linux.org.uk>, Ingo Molnar <mingo@...e.hu>
Subject: Re: [RFC 7/9] ppp: use big tty mutex
On Wed, Mar 31, 2010 at 4:56 AM, Arnd Bergmann <arnd@...db.de> wrote:
> ppp interacts with the tty layer, so it should
> take the BTM instead of the BKL.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> drivers/net/ppp_generic.c | 29 +++++++++++++++--------------
> 1 files changed, 15 insertions(+), 14 deletions(-)
>
> diff --git a/drivers/net/ppp_generic.c b/drivers/net/ppp_generic.c
> index 6d61602..bc89a1b 100644
> --- a/drivers/net/ppp_generic.c
> +++ b/drivers/net/ppp_generic.c
> @@ -40,7 +40,7 @@
> #include <linux/if_arp.h>
> #include <linux/ip.h>
> #include <linux/tcp.h>
> -#include <linux/smp_lock.h>
> +#include <linux/tty.h>
> #include <linux/spinlock.h>
> #include <linux/rwsem.h>
> #include <linux/stddef.h>
> @@ -362,7 +362,8 @@ static const int npindex_to_ethertype[NUM_NP] = {
> */
> static int ppp_open(struct inode *inode, struct file *file)
> {
> - cycle_kernel_lock();
> + tty_lock();
> + tty_unlock();
I don't really get your point here. :) Why do you do this?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists