]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
vfs: cache request_queue in struct block_device
authorAndi Kleen <ak@linux.intel.com>
Fri, 16 Dec 2011 04:50:48 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 20 Dec 2011 07:44:09 +0000 (18:44 +1100)
commit89ffc8fed9e62af9e0653345c2bb83dda0b9f55f
tree7395402a18758d1d1743d4122b4df74e2be54477
parentc12baf6cb0220b93f93cb51fba8ddd9110a64e88
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