projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f7f418
)
blk-mq: initialize sg_reserved_size
author
Christoph Hellwig
<hch@infradead.org>
Fri, 7 Feb 2014 18:22:39 +0000
(10:22 -0800)
committer
Jens Axboe
<axboe@fb.com>
Fri, 7 Feb 2014 18:58:54 +0000
(11:58 -0700)
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>
block/blk-mq.c
patch
|
blob
|
history
diff --git
a/block/blk-mq.c
b/block/blk-mq.c
index
a99bea4
..
f1e63c2
100644
(file)
--- 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)