[dm-devel] [PATCH v2] dm table: do not allow queue limits that will exceed hardware limits

Alasdair G Kergon agk at redhat.com
Tue Sep 18 11:40:23 UTC 2012


On Mon, Sep 17, 2012 at 03:44:29PM -0400, David Jeffery wrote:
> @@ -2425,6 +2425,15 @@ struct dm_table *dm_swap_table(struct mapped_device *md, struct dm_table *table)

> +	if (limits.max_sectors == UINT_MAX)
  
Specifically, I don't want dm.c to be peering directly into limits.

It just called calculate_queue_limits() above that.
Why is calculate_queue_limits getting the limits wrong?

Alasdair




More information about the dm-devel mailing list