]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dio: use a slab cache for struct dio
authorAndi Kleen <ak@linux.intel.com>
Wed, 5 Oct 2011 00:44:04 +0000 (11:44 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Oct 2011 06:00:12 +0000 (17:00 +1100)
commit2b17cb931723a707ed26ddf1bea053be8e0c7964
tree98b690e38c5fd1e0bf2bb6bb76309e6e420cf017
parent62a3eade4ef9eac23b0d5f61e2e0cc77ab006aa9
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