These get allocated and freed millions of times on this kernel tree. Use a dedicated kmem_cache pool and avoid costly dynamic memory allocations. Most allocations' size is: (sizeof(struct dma_buf) + sizeof(struct reservation_object)). Put those under kmem_cache pool and distinguish them with dmabuf->from_kmem flag. Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com> [@0ctobot: Adapted for 4.19] Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
20 KiB
20 KiB