On Fri, Jun 06, 2025 at 10:57:44AM -0700, John Hubbard wrote:> > I'm easy on this point, I'd say in that case VM_WARN_ON() is the most
On 6/6/25 4:04 AM, Lorenzo Stoakes wrote:
On Fri, Jun 06, 2025 at 12:28:28PM +0200, David Hildenbrand wrote:
On 06.06.25 12:19, Lorenzo Stoakes wrote:So to me the only assessment needed is 'do we want to warn on this or not?'.
On Fri, Jun 06, 2025 at 12:13:27PM +0200, Michal Hocko wrote:
On Fri 06-06-25 11:01:18, David Hildenbrand wrote:
On 06.06.25 10:31, Michal Hocko wrote:[...]
And as you say, really WARN_ON_ONCE() seems appropriate, because nearly always
we will get flooded with useless information.
As yet another victim of such WARN_ON() floods at times, I've followed
this thread with great interest. And after reflecting on it a bit, I believe
that, surprisingly enough, WARN_ON() is a better replacement for VM_BUG_ON()
than WARN_ON_ONCE(), because:
Right, these shouldn't be happening _at all_.
_conservative_ approach, since these are things that must not happen, and
so it's not unreasonable to fail to repress repetitions of the 'impossible'
:)
But I get the general point about ...WARN_ON_ONCE() avoiding floods.
David, what do you think?