]> git.baikalelectronics.ru Git - kernel.git/commit
block: simplify queue_next_fseq
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Sep 2010 09:56:17 +0000 (11:56 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 10 Sep 2010 10:35:37 +0000 (12:35 +0200)
commit00c30db2220be3461f49db85eec35a8e840bd639
tree554f623851e5b30069e5e0c5706100ed7b82a3bd
parent7e72924be6bf3fb94edfe12a59dfe638875b7f94
block: simplify queue_next_fseq

We need to call blk_rq_init and elv_insert for all cases in queue_next_fseq,
so take these calls into common code.  Also move the end_io initialization
from queue_flush into queue_next_fseq and rename queue_flush to
init_flush_request now that it's old name doesn't apply anymore.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-flush.c