Re: [PATCH] Re: Move of input drivers, some word needed from you

From: Roman Zippel (zippel@fh-brandenburg.de)
Date: Tue Aug 22 2000 - 13:03:29 EST


Hi,

> Now, currently, most of the recieve handling is postponed to the
> bottom half. I question the usefulness of this optimization. It
> certainly adds latency. What is it that needs to be done on reception
> of a few chars? Copy the data to userspace, and hit the waitq of the
> process that's waiting for data. If you want to prevent the races, use
> a kernel-space circular buffer, and do the processing (copy to
> userspace) in the context of the wokenup process.

The input line handling in n_tty.c should IMO not be done on interrupt
level. AFAIK it's the only reason put_char can't sleep and you can get the
input line handling with a simple (but admittingly not very realistic)
example to overflow, because it has to echo chars back and at some point
it simply has to drop characters.

bye, Roman

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Aug 23 2000 - 21:00:07 EST