]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dio: use a slab cache for struct dio
authorAndi Kleen <ak@linux.intel.com>
Mon, 24 Oct 2011 15:00:19 +0000 (02:00 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:08:24 +0000 (20:08 +1100)
commitdfacf52c832100f94dc71249d4aa76aae45770e8
tree6dea5fa15d80853413500ae4a1e11a3bc9bb6551
parent6f4813b5067e248f7f0cfc0edad884eee58920fc
dio: 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>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/direct-io.c