Subject: Re: wd.c patch to reduce kernel stack usage
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 06/28/2002 11:05:29
On Thu, Jun 27, 2002 at 03:46:02PM -0700, Jason R Thorpe wrote:
> On Thu, Jun 27, 2002 at 11:48:26PM +0200, Manuel Bouyer wrote:
>
> > This looks OK, although I'm not sure calling malloc here (from interrupt
> > context) is really better.
>
> malloc() is safe for interrupt context use, so long as the interrupt
> is blocked by splvm() (which IPL_BIO interrupts are).
Yes. I was just wondering the malloc overhead here was worth it for 256
bytes, and if a better solution could not be found.
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
--