Searched hist:"6 e8267f532a17165ab551ac5fdafcba5333dcca5" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/ |
H A D | direct-io.c | diff 6e8267f532a17165ab551ac5fdafcba5333dcca5 Mon Aug 01 23:38:06 CDT 2011 Andi Kleen <ak@linux.intel.com> direct-io: use a slab cache for struct dio
A direct slab call is slightly faster than kmalloc and can be better cached per CPU. It also avoids rounding to the next kmalloc slab.
In addition this enforces cache line alignment for struct dio to avoid any false sharing.
Signed-off-by: Andi Kleen <ak@linux.intel.com> Acked-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
|