Giant on serial devices in USB2?

Rink Springer rink at FreeBSD.org
Tue Dec 23 10:14:07 PST 2008


On Tue, Dec 23, 2008 at 06:59:11PM +0100, Ed Schouten wrote:
> WHat's the exact reason USB2 still uses Giant on TTY related drivers?
> Couldn't it just use the per-TTY mutex? If not, maybe it should create a
> custom system-wide mutex, instead of using Giant?

I think this is mostly leftover crud from the pre-TTY-MP safe days. As
long as it uses the proper TTY interfaces, nothing should stop it from
ditching Giant.

-- 
Rink P.W. Springer                                - http://rink.nu
"Chance favours the prepared mind"
- Penn


More information about the freebsd-usb mailing list