]> 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, 16 Nov 2011 23:41:49 +0000 (10:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 17 Nov 2011 02:57:22 +0000 (13:57 +1100)
commitee047139b81d4d3664f415841ec4119309bd481b
treef01c55ffa21b139cdbbeb5865ee63b8c310fac59
parent9a88a3d254e1b7303ff7fb07165d51d2b1e6e149
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