summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2014-02-07 10:22:39 -0800
committerJens Axboe <axboe@fb.com>2014-02-07 11:58:54 -0700
commit1be036e9464032362def6b3c13f57bfceefe2dab (patch)
tree724c7708b5e53134c8d6eb38b17b3f0edd7f1c2d /block
parent4f7f418c4835d3ce1b66d00502df41f324d13ec0 (diff)
downloadlinux-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')
-rw-r--r--block/blk-mq.c2
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)