Re: PATCH: tty locking for 2.6.9rc2

From: Alan Cox
Date: Wed Sep 15 2004 - 16:01:32 EST


On Wed, Sep 15, 2004 at 03:23:19PM -0500, Paul Fulghum wrote:
> Here is a patch against your last patch that clears
> up both the per tty refcount initialization and
> the remove_dev() global refcount leak.

Thanks

> /* Now set up the new line discipline. */
> tty->ldisc = *ld;
> + tty->ldisc.refcount = 0;

What do you think about

tty_ldisc_get(tty, ldisc_num)

That seems to remove the whole mess ?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/