Messages in this thread | | | Date | Tue, 07 Feb 2006 20:41:04 -0600 | From | Paul Fulghum <> | Subject | Re: [PATCH] new tty buffering locking fix |
| |
Alan Cox wrote: > Thats going to hurt memory consumption in the worst cases.
I'll gather some accounting info tomorrow, and consider the more pathological cases.
> Might be better to document the sane behaviour and enforce it ?
That was my first thought, which prompted my initial patch of the hvc drivers.
Requiring a call to schedule processing of tty data after preallocating buffer space is not obvious, and could result in scheduling work when there is no data to process.
This semantic twist introduced by my first locking patch is a hazard for driver writers, and would require an audit of existing drivers (as demonstrated by Olaf's report).
-- Paul Fulghum Microgate Systems, Ltd
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |