]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vfs: cache request_queue in struct block_device
authorAndi Kleen <ak@linux.intel.com>
Mon, 24 Oct 2011 15:00:22 +0000 (02:00 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 4 Nov 2011 04:48:24 +0000 (15:48 +1100)
commit1abf045d46486095363bcfa26adf4aa4b238708d
tree671b0b42d75fe000b421d03ca75a58bcfd359242
parent1e86aabf6742c5a7ecdd8cc8bad5ca984f9064c5
vfs: cache request_queue in struct block_device

This makes it possible to get from the inode to the request_queue with one
less cache miss.  Used in followon optimization.

The livetime of the pointer is the same as the gendisk.

This assumes that the queue will always stay the same in the gendisk while
it's visible to block_devices.  I think that's safe correct?

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/block_dev.c
include/linux/fs.h