diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2009-06-03 03:33:18 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-06-03 03:33:18 -0400 |
commit | a05c0205ba031c01bba33a21bf0a35920eb64833 (patch) | |
tree | 517c7682fc415cdb122ee7fcfc75eff674cc7b78 /drivers/md/dm-table.c | |
parent | dbdc9dd342f0a7e32f40f0d4ade662bdfe057484 (diff) |
block: Fix bounce limit setting in DM
blk_queue_bounce_limit() is more than a wrapper about the request queue
limits.bounce_pfn variable. Introduce blk_queue_bounce_pfn() which can
be called by stacking drivers that wish to set the bounce limit
explicitly.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/md/dm-table.c')
-rw-r--r-- | drivers/md/dm-table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index e9a73bb242b0..3ca1604ddd5c 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c | |||
@@ -920,7 +920,7 @@ void dm_table_set_restrictions(struct dm_table *t, struct request_queue *q) | |||
920 | blk_queue_max_segment_size(q, t->limits.max_segment_size); | 920 | blk_queue_max_segment_size(q, t->limits.max_segment_size); |
921 | blk_queue_max_hw_sectors(q, t->limits.max_hw_sectors); | 921 | blk_queue_max_hw_sectors(q, t->limits.max_hw_sectors); |
922 | blk_queue_segment_boundary(q, t->limits.seg_boundary_mask); | 922 | blk_queue_segment_boundary(q, t->limits.seg_boundary_mask); |
923 | blk_queue_bounce_limit(q, t->limits.bounce_pfn); | 923 | blk_queue_bounce_pfn(q, t->limits.bounce_pfn); |
924 | 924 | ||
925 | if (t->limits.no_cluster) | 925 | if (t->limits.no_cluster) |
926 | queue_flag_clear_unlocked(QUEUE_FLAG_CLUSTER, q); | 926 | queue_flag_clear_unlocked(QUEUE_FLAG_CLUSTER, q); |