All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Cox <alan@redhat.com>
To: Paul Fulghum <paulkf@microgate.com>
Cc: Alan Cox <alan@redhat.com>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@osdl.org>
Subject: Re: PATCH: tty locking for 2.6.9rc2
Date: Wed, 15 Sep 2004 12:30:51 -0400	[thread overview]
Message-ID: <20040915163051.GA9096@devserv.devel.redhat.com> (raw)
In-Reply-To: <1095265595.2924.27.camel@deimos.microgate.com>

On Wed, Sep 15, 2004 at 11:26:35AM -0500, Paul Fulghum wrote:
> I tried this patch and can't change line disciplines.
> The user program waits forever on ioctl(TIOCSETD).
> I am going to add printk statements to

Is the tty currently in use - that implies maybe an ldisc leak

> Each line discipline has a refcount.
> This single refcount is modified by all
> entities using that line discipline.

Nope. tty->ldisc is a -copy- of the ldisc structure rather than a 
pointer. It has always been that way

struct tty_struct {
        int     magic;
        struct tty_driver *driver;
        int index;
	struct tty_ldisc ldisc;

...



  reply	other threads:[~2004-09-15 16:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-14 16:34 PATCH: tty locking for 2.6.9rc2 Alan Cox
2004-09-15 16:26 ` Paul Fulghum
2004-09-15 16:30   ` Alan Cox [this message]
2004-09-15 18:54     ` Paul Fulghum
2004-09-15 20:08       ` Alan Cox
2004-09-15 20:23         ` Paul Fulghum
2004-09-15 20:40           ` Alan Cox
2004-09-15 20:53             ` Paul Fulghum
  -- strict thread matches above, loose matches on Subject: below --
2004-09-24  0:36 Ulisses

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040915163051.GA9096@devserv.devel.redhat.com \
    --to=alan@redhat.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulkf@microgate.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.