diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2009-09-11 15:54:52 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-09-14 02:24:52 -0400 |
commit | 3c5820c743479285ce2678fd3c12b1fd39fe998f (patch) | |
tree | 8f6b3980f5e8da4912b44eee4688d51ce12c97a3 /drivers | |
parent | 06d2188644c85c56d243efab914f368d1d23c4a3 (diff) |
block: Optimal I/O limit wrapper
Implement blk_limits_io_opt() and make blk_queue_io_opt() a wrapper
around it. DM needs this to avoid poking at the queue_limits directly.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/dm-stripe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index fde658ccbcec..e0efc1adcaff 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c | |||
@@ -336,7 +336,7 @@ static void stripe_io_hints(struct dm_target *ti, | |||
336 | unsigned chunk_size = (sc->chunk_mask + 1) << 9; | 336 | unsigned chunk_size = (sc->chunk_mask + 1) << 9; |
337 | 337 | ||
338 | blk_limits_io_min(limits, chunk_size); | 338 | blk_limits_io_min(limits, chunk_size); |
339 | limits->io_opt = chunk_size * sc->stripes; | 339 | blk_limits_io_opt(limits, chunk_size * sc->stripes); |
340 | } | 340 | } |
341 | 341 | ||
342 | static struct target_type stripe_target = { | 342 | static struct target_type stripe_target = { |