Allowing small allocations to fail
Allowing small allocations to fail
Posted Mar 11, 2015 3:59 UTC (Wed) by neilbrown (subscriber, #359)In reply to: Allowing small allocations to fail by Cyberax
Parent article: Allowing small allocations to fail
> I wonder why they don't approach this problem from the other side - add a special flag __GFP_CAN_FAIL and start annotating the kernel with it.
The flag exists and is spelt "__GFP_NORETRY".
Setting that everywhere could get very noisy.... might be a good idea though.