blk-mq: initialize request in __blk_mq_alloc_request
authorChristoph Hellwig <hch@lst.de>
Tue, 27 May 2014 18:59:47 +0000 (20:59 +0200)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:49 +0000 (12:54 -0600)
commit1d9edd1d834c28c32e95917cfe135e1bee6bddeb
tree82289cd24a29ba222a8b5b476fbb8ae3860f9ed9
parent9af09bb4ab34079c71bf4ae983d459d77d1a3827
blk-mq: initialize request in __blk_mq_alloc_request

Both callers if __blk_mq_alloc_request want to initialize the request, so
lift it into the common path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c