Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev



On Tue, Nov 10, 2009 at 03:29:29PM +0100, Adam Hamsik wrote:
> On Tue, Nov 10, 2009 at 2:35 PM, Matthias Scheler <tron%netbsd.org@localhost> 
> wrote:
> > On Tue, Nov 10, 2009 at 08:48:42AM +0000, Matthias Scheler wrote:
> >> > A LOCKDEBUG kernel will panic.  How can we avoid the stack
> >> > overflows and such in a different way?
> >>
> >> I'll try to rewrite the code to use M_NOWAIT.
> >
> > The attached diff changes the code to use M_NOWAIT. I have however
> > only compiled tested it so far.
> 
> I don't think that this is right approach which can work. Because
> M_NOWIAT allocation can very easily fail(even if there is free memory
> in system), which will panic cgd driver.

It shouldn't panic the driver. It will just return an error.

        Kind regards

-- 
Matthias Scheler                                  http://zhadum.org.uk/


Home | Main Index | Thread Index | Old Index