Re: [RFC PATCH for 4.21 03/16] mm: Replace BUG_ON() by WARN_ON() in vm_unmap_ram()

From: Thomas Gleixner
Date: Thu Nov 01 2018 - 08:21:33 EST


Mathieu,

On Thu, 1 Nov 2018, Mathieu Desnoyers wrote:

> It is encouraged to warn and return rather than use BUG_ON() when
> the condition can be recovered from in ways that are more graceful than
> halting the whole system.

You're failing to desribe how that graceful recovery works.

Thanks,

tglx