> The goal is fine, but I don't think this accomplishes it. My > understanding is that __alloc_pages will keep calling OOM until it is > able to satisfy the request -- thus the module is blocked waiting for > memory. It looks like that can be avoided with the __GFP_NORETRY flag.