Re: 2.6.5-rc2-mm5

From: Russell King
Date: Mon Mar 29 2004 - 04:58:28 EST


On Mon, Mar 29, 2004 at 01:45:25AM -0800, Andrew Morton wrote:
> +remove-down_tty_sem.patch
> +tty-locking-again.patch
>
> Really, really fix the tty open/close race.

Erm, note that tty drivers are supposed to handle the open/close stuff
themselves, and it is completely valid for ->close to be called while
another thread is in ->open. In fact, it's desirable since ->open may
be waiting for the DCD line from a modem to activate, while there may
be a simultaneous O_NONBLOCK open/ioctl/close from stty.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
-
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/