]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vfs: cache request_queue in struct block_device
authorAndi Kleen <ak@linux.intel.com>
Wed, 5 Oct 2011 00:44:07 +0000 (11:44 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Oct 2011 06:32:46 +0000 (17:32 +1100)
commite478b798eb9f6fa220aede60074c690a62f4465f
tree4589eca46c7c7c9894abe3de423c87151585eb93
parentc76dd0377f50f919f85e2a8378b9597fe3c5a0e0
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