diff options
author | Christoph Hellwig <hch@lst.de> | 2017-06-19 10:26:23 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-27 21:13:45 +0300 |
commit | 0b0bcacc3b4300c4bba0bacb4c7a279b2728f331 (patch) | |
tree | aa0742924c868090ad708668dc757922e1971fd4 /block/blk-mq.c | |
parent | 1c4bc3ab9a064d98cdf6de6b44f89d5c3757fa32 (diff) | |
download | linux-0b0bcacc3b4300c4bba0bacb4c7a279b2728f331.tar.xz |
block: don't bother with bounce limits for make_request drivers
We only call blk_queue_bounce for request-based drivers, so stop messing
with it for make_request based drivers.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 05dfa3f270ae..41e3aeb51c9a 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -2350,6 +2350,11 @@ struct request_queue *blk_mq_init_allocated_queue(struct blk_mq_tag_set *set, blk_queue_make_request(q, blk_mq_make_request); /* + * by default assume old behaviour and bounce for any highmem page + */ + blk_queue_bounce_limit(q, BLK_BOUNCE_HIGH); + + /* * Do this after blk_queue_make_request() overrides it... */ q->nr_requests = set->queue_depth; |