Message ID | 4AB1ED1F.1010203@ct.jp.nec.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
Index: 2.6.31/drivers/md/dm-table.c =================================================================== --- 2.6.31.orig/drivers/md/dm-table.c +++ 2.6.31/drivers/md/dm-table.c @@ -992,9 +992,13 @@ int dm_calculate_queue_limits(struct dm_ unsigned i = 0; blk_set_default_limits(limits); + limits->max_sectors = 0; + limits->max_hw_sectors = 0; while (i < dm_table_get_num_targets(table)) { blk_set_default_limits(&ti_limits); + ti_limits.max_sectors = 0; + ti_limits.max_hw_sectors = 0; ti = dm_table_get_target(table, i++);