From: Jens Axboe Date: Thu, 15 Jul 2010 16:49:31 +0000 (-0600) Subject: block: fix problem with sending down discard that isn't of correct granularity X-Git-Tag: v2.6.36-rc1~288^2~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10d1f9e2ccfff40665a00ea0e0a0d11e54c9cbb1;p=pandora-kernel.git block: fix problem with sending down discard that isn't of correct granularity If the queue doesn't have a limit set, or it just set UINT_MAX like we default to, we coud be sending down a discard request that isn't of the correct granularity if the block size is > 512b. Fix this by adjusting max_discard_sectors down to the proper alignment. Signed-off-by: Jens Axboe --- Reading git-diff-tree failed