2002-09-10 19:39:49

by Jeff Garzik

[permalink] [raw]
Subject: Re: [linux-usb-devel] Re: [BK PATCH] USB changes for 2.5.34

Linus Torvalds wrote:
> On Tue, 10 Sep 2002, Oliver Xymoron wrote:
>
>>Which still leaves the question, does it really make sense for
>>FATAL/BUG to forcibly kill the machine?
>
>
> No. It should only be "locally fatal", and it should clearly just do what
> BUG() does now - kill the process.
>
> But that implies very much that you really cannot use FATAL() in general
> at all, since it would be illegal to use whenever some caller holds some
> non-local locks (which is almost always the case for most "peripheral
> code").


Well we still have panic()... It might be nice to have a PANIC() macro
with a similar form to that of DEBUG/WARN/FATAL...