Re: [patch] 2.4.0, 2.2.18: A critical problem with tty_io.c

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 18 May 2001 12:25:45 +0100 (BST)


> Where is an example of the "other locking fix styles" that you and Ted want
> to apply to the serial drivers?
> I would be interested to try to figure this out and fix it--can you give
> me more of an idea of what the problem is?

Add an 'owner' field to the objects we are using. Then we can lock the tty
and the ldisc from the tyy_io code rather than in serial.c and friends. This
removes the unload during open/close races we currently have in serial.c

Take a look at videodev.c for a fairly clear example.

Alan

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