linux/arch
Jeff Dike c59dbcadd5 uml: fix console writing bugs
The previous console cleanup patch switched generic_read and generic_write
from calling os_{read,write}_file to calling read and write directly.  Because
the calling convention is different, they now need to get any error from errno
rather than the return value.  I did this for generic_read, but forgot about
generic_write.

While chasing some output corruption, I noticed that line_write was
unnecessarily calling flush_buffer, and deleted it.  I don't understand why,
but the corruption disappeared.  This is unneeded because there already is a
perfectly good mechanism for finding out when the host output device has some
room to write data - there is an interrupt that comes in when writes can
happen again.  line_write calling flush_buffer seemed to just be an attempt to
opportunistically get some data out to the host.

I also made write_chan short-circuit calling into the host-level code for
zero-length writes.  Calling libc write with a length of zero conflated write
not being able to write anything with asking it not to write anything.  Better
to just cut it off as soon as possible.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-16 09:43:04 -07:00
..
alpha alpha: beautify vmlinux.lds 2007-10-16 09:43:03 -07:00
arm
avr32
blackfin
cris CRIS: cleanup struct irqaction initializers 2007-10-16 09:43:04 -07:00
frv FRV: cleanup struct irqaction initializers 2007-10-16 09:43:03 -07:00
h8300
i386
ia64 fix memory hot remove not configured case. 2007-10-16 09:43:02 -07:00
m32r m32r: convert to generic sys_ptrace 2007-10-16 09:43:04 -07:00
m68k
m68knommu
mips
parisc
powerpc fix memory hot remove not configured case. 2007-10-16 09:43:02 -07:00
ppc
s390
sh fix memory hot remove not configured case. 2007-10-16 09:43:02 -07:00
sh64
sparc
sparc64 fix memory hot remove not configured case. 2007-10-16 09:43:02 -07:00
um uml: fix console writing bugs 2007-10-16 09:43:04 -07:00
v850
x86 fix memory hot remove not configured case. 2007-10-16 09:43:02 -07:00
x86_64
xtensa