diff options
author | Christoph Hellwig <hch@infradead.org> | 2014-02-07 13:22:39 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-02-07 13:58:54 -0500 |
commit | 1be036e9464032362def6b3c13f57bfceefe2dab (patch) | |
tree | 724c7708b5e53134c8d6eb38b17b3f0edd7f1c2d /block | |
parent | 4f7f418c4835d3ce1b66d00502df41f324d13ec0 (diff) |
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')
-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, | |||
1387 | q->mq_ops = reg->ops; | 1387 | q->mq_ops = reg->ops; |
1388 | q->queue_flags |= QUEUE_FLAG_MQ_DEFAULT; | 1388 | q->queue_flags |= QUEUE_FLAG_MQ_DEFAULT; |
1389 | 1389 | ||
1390 | q->sg_reserved_size = INT_MAX; | ||
1391 | |||
1390 | blk_queue_make_request(q, blk_mq_make_request); | 1392 | blk_queue_make_request(q, blk_mq_make_request); |
1391 | blk_queue_rq_timed_out(q, reg->ops->timeout); | 1393 | blk_queue_rq_timed_out(q, reg->ops->timeout); |
1392 | if (reg->timeout) | 1394 | if (reg->timeout) |