Re: [2.6.27.24] Kernel coredump to a pipe is failing

From: Andrew Morton
Date: Tue May 26 2009 - 20:30:43 EST


On Wed, 27 May 2009 02:11:04 +0200 Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:

> > I dunno. Is this true of all linux filesystems in all cases? Maybe.
>
> Assuming one of them is not would you rather want to fix that file system
> or 10 zillion user programs (including the kernel core dumper) that
> get it wrong? @)
>

I think that removing one bug is better than adding one.

Many filesystems will return a short write if they hit a memory
allocation failure, for example. pipe_write() sure will. Retrying
is appropriate in such a case.

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