]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: cache request_queue in struct block_device
authorAndi Kleen <ak@linux.intel.com>
Fri, 13 Jan 2012 01:20:34 +0000 (17:20 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Jan 2012 04:13:12 +0000 (20:13 -0800)
commitd9b664d4d546220ff22bf4ed1f3ce4d2cc9d588e
tree70acf2fb1e4a9a3a62559ad9218278d2fb114599
parent914f46eae6297f852771b515de027c291a21cdd9
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/block_dev.c
include/linux/fs.h