commit | 10d1f9e2ccfff40665a00ea0e0a0d11e54c9cbb1 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jaxboe@fusionio.com> | Thu Jul 15 10:49:31 2010 -0600 |
committer | Jens Axboe <jaxboe@fusionio.com> | Sat Aug 07 18:26:33 2010 +0200 |
tree | 222c661376d8530a1bdf4e18cf5ff84267529bb3 | |
parent | f10d9f617a65905c556c3b37c9b9646ae7d04ed7 [diff] |
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 <jaxboe@fusionio.com>