aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/paride/pd.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-06-19 09:26:26 +0200
committerJens Axboe <axboe@kernel.dk>2017-06-27 12:13:45 -0600
commit8fc450443e3c489af41a3c9c85b32d38625f2c2a (patch)
treed90a7255a56e63da540cfdf39c2c61581e86db93 /drivers/block/paride/pd.c
parentblock: don't set bounce limit in blk_init_allocated_queue (diff)
downloadlinux-dev-8fc450443e3c489af41a3c9c85b32d38625f2c2a.tar.xz
linux-dev-8fc450443e3c489af41a3c9c85b32d38625f2c2a.zip
block: don't set bounce limit in blk_init_queue
Instead move it to the callers. Those that either don't use bio_data() or page_address() or are specific to architectures that do not support highmem are skipped. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/paride/pd.c')
-rw-r--r--drivers/block/paride/pd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/paride/pd.c b/drivers/block/paride/pd.c
index c98983be4f9c..27a44b97393a 100644
--- a/drivers/block/paride/pd.c
+++ b/drivers/block/paride/pd.c
@@ -863,6 +863,7 @@ static void pd_probe_drive(struct pd_unit *disk)
return;
}
blk_queue_max_hw_sectors(p->queue, cluster);
+ blk_queue_bounce_limit(p->queue, BLK_BOUNCE_HIGH);
if (disk->drive == -1) {
for (disk->drive = 0; disk->drive <= 1; disk->drive++)