Giant on serial devices in USB2?
Hans Petter Selasky
hselasky at c2i.net
Tue Dec 23 10:54:05 PST 2008
On Tuesday 23 December 2008, Ed Schouten wrote:
> Hello HPS, others,
>
> I was just running a grep on the USB2 code and saw the following:
>
> $ grep -r Giant sys/dev/usb2/serial | wc -l
> 70
>
> 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?
>
> Yours,
Hi,
I don't have all those USB devices at hand, so I simply cannot test if the
driver still works without Giant.
BTW: It should be trivial to remove Giant from the drivers. I think Andrew
Thompson has already done some drivers Giant-free.
--HPS
More information about the freebsd-usb
mailing list