diff options
author | Christoph Hellwig <hch@infradead.org> | 2014-02-07 19:22:39 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-02-07 19:58:54 +0100 |
commit | 1be036e9464032362def6b3c13f57bfceefe2dab (patch) | |
tree | 724c7708b5e53134c8d6eb38b17b3f0edd7f1c2d /block | |
parent | blk-mq: handle dma_drain_size (diff) | |
download | linux-1be036e9464032362def6b3c13f57bfceefe2dab.tar.xz linux-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.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) |