Hi, it seems there was no fundamental opposition to my previous RFC [1] so I am sending this again now to be considered for inclusion. I have reworked the patch slightly and made it use the already existing warn_alloc_failed which was updated and renamed to be more generic. This is the patch 1. The patch 2 then simply uses it to warn about long stall. Comparing to the previous patch it also does show_mem() which might be really helpful to see why the allocation cannot make any progress.
[1] http://lkml.kernel.org/r/[email protected]

