summaryrefslogtreecommitdiffstats
path: root/lib/textsearch.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2009-09-30 13:54:20 +0200
committerJens Axboe <jens.axboe@oracle.com>2009-10-01 21:15:46 +0200
commitca80650cfbde5b17a5fa957a261c7973f84599a7 (patch)
treed98ad032d8c701084539d5673c2d7d7ca5962a3f /lib/textsearch.c
parent1122a26f2abe4245ccdaed95ec23f63fe086b332 (diff)
downloadtalos-op-linux-ca80650cfbde5b17a5fa957a261c7973f84599a7.tar.gz
talos-op-linux-ca80650cfbde5b17a5fa957a261c7973f84599a7.zip
block: allow large discard requests
Currently we set the bio size to the byte equivalent of the blocks to be trimmed when submitting the initial DISCARD ioctl. That means it is subject to the max_hw_sectors limitation of the HBA which is much lower than the size of a DISCARD request we can support. Add a separate max_discard_sectors tunable to limit the size for discard requests. We limit the max discard request size in bytes to 32bit as that is the limit for bio->bi_size. This could be much larger if we had a way to pass that information through the block layer. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'lib/textsearch.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud