Re: [PATCH] crypto: lzo: try kmalloc() before vmalloc()

From: Eric Dumazet
Date: Tue May 27 2014 - 13:38:46 EST


On Wed, 2014-05-28 at 01:30 +0800, Herbert Xu wrote:

> Looks good to me. This would seem like something that could be
> generalised to other vmalloc users, no?
>

Yep, we have some spots where this is done, and we had attempts in the
past to get a generic allocator / deallocator but this went nowhere,
after a lot of time trying to get this right.

I guess we need to reach some threshold to convince Andrew Morton ;)

$ git grep -n is_vmalloc_addr | wc -l
85



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/