From: Christoph Hellwig Date: Fri, 7 Feb 2014 18:22:39 +0000 (-0800) Subject: blk-mq: initialize sg_reserved_size X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1be036e9464032362def6b3c13f57bfceefe2dab;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git blk-mq: initialize sg_reserved_size To behave the same way as the old request path. Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe --- 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)