]> www.infradead.org Git - users/jedix/linux-maple.git/commit
direct-io: use a slab cache for struct dio
authorAndi Kleen <ak@linux.intel.com>
Tue, 2 Aug 2011 04:38:06 +0000 (21:38 -0700)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Thu, 1 Dec 2011 16:53:49 +0000 (10:53 -0600)
commitefdaeeb82be3ec5b64a0a91db6678c94f6484d09
tree384618b32fa31132aac72d55917fcb7ac4e7a112
parent903223ef004afca3f615fa79a4a70d86d3d4d1b7
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>
fs/direct-io.c