]> git.baikalelectronics.ru Git - kernel.git/commit
block: add request submission interface
authorKiyoshi Ueda <k-ueda@ct.jp.nec.com>
Thu, 18 Sep 2008 14:45:38 +0000 (10:45 -0400)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:18 +0000 (08:56 +0200)
commit007ea6fc249f0a14f98ee01ac9b19d4fe2de52c1
treeaf7b98d5ef57483cfac53cc4866194391c3ff7b7
parentcfc5a87facc858667d80a5b2f15ce7d7d01f588e
block: add request submission interface

This patch adds blk_insert_cloned_request(), a generic request
submission interface for request stacking drivers.
Request-based dm will use it to submit their clones to underlying
devices.

blk_rq_check_limits() is also added because it is possible that
the lower queue has stronger limitations than the upper queue
if multiple drivers are stacking at request-level.
Not only for blk_insert_cloned_request()'s internal use, the function
will be used by request-based dm when the queue limitation is
modified (e.g. by replacing dm's table).

Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-core.c
include/linux/blkdev.h