On 12/18/18 9:32 PM, Steven Rostedt wrote:
> Where? Mostly we have BUILD_BUG_ON() which isn't bad at all.
> 
> The only other BUG I see in the jump label code is in the arch specific
> code and that's from 2012. Lately, we are trying to get rid of BUG()
> and panic() entirely, with a few exceptions (where there's really no
> way to return. Like when the function graph stack is corrupted, and we
> don't know where to go).
> 
> If there's a way to continue in a critical state, it's best to WARN()
> and continue on. That way, the user can have a chance to see what
> happened.

Got it!

>> What I could do here is:
>>
>> Add a "fallback" boll that is disabled by default.
>> If I hit this case:
>>      WARN()
>>      turn "fallback" on, returning to the old mode (without batch)
>>
>> Sound better?
> Yes, please do.

ack!

Thanks, Steve!

-- Daniel

Reply via email to