Re: [PATCH 1/2] block: tweak rounding of max_discard_sectors

From: Christoph Hellwig
Date: Tue Mar 27 2012 - 05:04:44 EST


On Wed, Mar 14, 2012 at 06:12:27PM +0100, Paolo Bonzini wrote:
> Mostly a preparation for the next patch.
>
> In principle this fixes an infinite loop if max_discard_sectors < granularity,
> but that really shouldn't happen.
>
> Cc: Jens Axboe <axboe@xxxxxxxxx>
> Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>

Looks good, thanks for fixing this.

Reviewed-by: Christoph Hellwig <hch@xxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/