blk-mq: initialize request on allocation
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Apr 2014 08:30:10 +0000 (10:30 +0200)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:44 +0000 (12:54 -0600)
commitbbffe05c018e0135c17da31d034607cd646d921e
tree1badc92725609bf9fa2afff5901a556d0cfc45bd
parentcda83b8148813cdee2c4276394ade0b238cdf2b4
blk-mq: initialize request on allocation

If we want to share tag and request allocation between queues we cannot
initialize the request at init/free time, but need to initialize it
at allocation time as it might get used for different queues over its
lifetime.

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