The attached patch extends slab debugging with an early check if ATOMIC
is required. The patch is relative to 2.4.20 but may also be interesting
Normally the atomic requirement is only verified when the slab cache
needs to grow, but with this patch such errors is detected immediately
on first call if slab debugging is enabled.
This patch would have saved me from panic bug hunting after a system was
sent into production as the errors then would have been trapped
immediately during development. Probably many others would be helped by
this slab debugging to trap stupid memory allocation / locking errors
early on in development.
MARA Systems AB, Sweden
< 1K Download
12. Easy Qs for ya