Re: [PATCH][RFC] 4K stacks default, not a debug thing any more...?
From: Neil Brown
Date: Fri Aug 10 2007 - 01:00:44 EST
On Friday August 10, dan.merillat@xxxxxxxxx wrote:
> On 8/1/07, Neil Brown <neilb@xxxxxxx> wrote:
>
> > No, this does not use indefinite stack.
> >
> > loop will schedule each request to be handled by a kernel thread, so
> > requests to 'loop' are serialised, never stacked.
> >
> > In 2.6.22, generic_make_request detects and serialises recursive calls,
> > so unlimited recursion is not possible there either.
>
> Is that saying "before 2.6.22, a read/write on a deeply layered device
> would use a lot of stack?"
before 2.6.22, a stack of dm and/or md devices (not loop, and not
md/raid0 or md/linear) would use more stack the more devices were
involved. If you made a very deep stack, you could push the stack
over any limit you chose.
I won't say "a lot of stack" as I haven't measured the exact amount,
just "more stack as you add more devices".
NeilBrown
-
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/