Re: proc_misc.c bug

Andrew Morton (akpm@digeo.com)
Thu, 10 Apr 2003 15:53:03 -0700


Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
>
> On Thu, 2003-04-10 at 23:02, David Mosberger wrote:
> > The workaround below is to allocate 4KB per 8 CPUs. Not really a
> > solution, but the fundamental problem is that /proc/interrupts
> > shouldn't use a fixed buffer size in the first place. I suppose
> > another solution would be to use vmalloc() instead. It all feels like
> > bandaids though.
>
> How about switching to Al's seqfile interface ?

It's already using it! Not sure why it needs to buffer all the text in one
big slurp.

There are about 20 different show_interrupts()es which need updating if
someone decides to fix it for real.

-
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/