]> www.infradead.org Git - users/jedix/linux-maple.git/commit
VFS: Cache request_queue in struct block_device
authorAndi Kleen <ak@linux.intel.com>
Thu, 1 Dec 2011 21:36:56 +0000 (15:36 -0600)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Thu, 1 Dec 2011 21:36:56 +0000 (15:36 -0600)
commitcf95845e82782ac51781d242fc020c50488d6dce
tree50e530409ccf2c3f895447974ee0caceb9a0459b
parent17870638ee02cb9d65111871ab3c0fc83b0a9a0c
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?

Cc: axboe@kernel.dk
Signed-off-by: Andi Kleen <ak@linux.intel.com>
fs/block_dev.c
include/linux/fs.h