diff options
author | Christoph Hellwig <hch@infradead.org> | 2014-02-07 10:22:39 -0800 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-02-07 11:58:54 -0700 |
commit | 1be036e9464032362def6b3c13f57bfceefe2dab (patch) | |
tree | 724c7708b5e53134c8d6eb38b17b3f0edd7f1c2d /block/blk-mq.c | |
parent | 4f7f418c4835d3ce1b66d00502df41f324d13ec0 (diff) | |
download | linux-stable-1be036e9464032362def6b3c13f57bfceefe2dab.tar.gz linux-stable-1be036e9464032362def6b3c13f57bfceefe2dab.tar.bz2 linux-stable-1be036e9464032362def6b3c13f57bfceefe2dab.zip |
blk-mq: initialize sg_reserved_size
To behave the same way as the old request path.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index a99bea455452..f1e63c2ece71 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1387,6 +1387,8 @@ struct request_queue *blk_mq_init_queue(struct blk_mq_reg *reg, q->mq_ops = reg->ops; q->queue_flags |= QUEUE_FLAG_MQ_DEFAULT; + q->sg_reserved_size = INT_MAX; + blk_queue_make_request(q, blk_mq_make_request); blk_queue_rq_timed_out(q, reg->ops->timeout); if (reg->timeout) |