Re: [PATCH] USB: serial: Fix read regression in 2.6.31

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 1 Oct 2009, Oliver Neukum wrote:

> Very well.
> I've now looked at tty code and my head spins.

I know the feeling!  :-)

> Very well. Do we have documentation about mutual exclusion?
> What can race with what?

In the tty layer, as far as I can tell, we have:

	close races with hangup;

	open races with everything (other opens, close, hangup,
	shutdown, remove, ...).

Clearly the BKL isn't going to solve all these races, but for many of 
them it's the only synchronization method being used.

It's not clear that things can be fixed by making changes only at the 
USB level.

Alan Stern

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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux