summaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorJens Axboe <jaxboe@fusionio.com>2010-07-15 18:49:31 +0200
committerJens Axboe <jaxboe@fusionio.com>2010-08-07 18:26:33 +0200
commit10d1f9e2ccfff40665a00ea0e0a0d11e54c9cbb1 (patch)
tree222c661376d8530a1bdf4e18cf5ff84267529bb3 /include/trace
parentblkdev: check for valid request queue before issuing flush (diff)
downloadlinux-10d1f9e2ccfff40665a00ea0e0a0d11e54c9cbb1.tar.xz
linux-10d1f9e2ccfff40665a00ea0e0a0d11e54c9cbb1.zip
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>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions