]> git.kernelconcepts.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, 13 Oct 2011 06:50:03 +0000 (17:50 +1100)
commitf681ad7566b79dadfaa842cb788ac5762cd050d7
tree34d975eff215ad197916ef5be219608be6f34a3f
parent88edba7dedf2aa80a82cfe6ceed9efc88b7d6710
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