]> 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, 28 Sep 2011 00:51:09 +0000 (10:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 30 Sep 2011 04:53:51 +0000 (14:53 +1000)
commit9ff2b254116528add487dc3a43dad53bf5a3aa74
tree5720fa4b547120c27290d1ac59fa5b059d02c743
parent6a905c595b7d7a850bcb701b3f54b4fecdf18c99
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 <>
fs/direct-io.c