All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: slub: don't panic for memcg kmem cache creation failure
@ 2019-06-29 14:05 Alexey Dobriyan
  2019-06-29 20:31 ` Shakeel Butt
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2019-06-29 14:05 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, shakeelb, dave.hansen, rientjes, mhocko

> -       if (flags & SLAB_PANIC)
> -               panic("Cannot create slab %s size=%u realsize=%u order=%u offset=%u flags=%lx\n",
> -                     s->name, s->size, s->size,
> -                     oo_order(s->oo), s->offset, (unsigned long)flags);

This is wrong. Without SLAB_PANIC people will start to implement error
checking out of habit and add all slightly different error messages.
This simply increases text and rodata size.

If memcg kmem caches creation failure is OK, then SLAB_PANIC should not
be passed.

The fact that SLAB doesn't implement SLAB_PANIC is SLAB bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-29 20:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-29 14:05 slub: don't panic for memcg kmem cache creation failure Alexey Dobriyan
2019-06-29 20:31 ` Shakeel Butt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.