Sounds like an application is doing a foolish thing and should stop it.Its not.
There's no guarantee as to how long select or an ioctl will take, andPreviously, the kernel was not calling to a device at all, so
now that we have fixed another bug, this device is slower.
If you change hardware types to use a different usb to serial chip, that
select call might take 4 times as long. Are we somehow supposed to
change the kernel to "fix" that?
Sure, but the throughput was not improved by the aforementionedThat's really not a valid test case, as it's nothing that we everNo idea.I asked the customer to comment outWhat exactly is the "problem" being seen?
tty_chars_in_buffer(tty) < WAKEUP_CHARS
line in n_tty.c, and he said that cured his problems,
so I think my guess was right.
Well, I can make a test-case that does 1000000 select() calls
in a loop and time it. This is probably the best I can do.
optimize a serial driver for. Throughput is the proper thing to care
about, right?
To actually determine how many characters the device has in its buffer.You are adding only 1 char, but the time to query TEMT is