]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: limit get chunk meta request size
authorMatias Bjørling <mb@lightnvm.io>
Fri, 13 Jul 2018 08:48:41 +0000 (10:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Jul 2018 14:14:41 +0000 (08:14 -0600)
commit83b79d3e8633d5a8b596a67126d45b0c3c09d7c5
tree7a0fdcdbc77cfcb6907fb8b44647080dab452e1e
parent035b1a374239c6aea9f7d2978e6a52a760261381
lightnvm: limit get chunk meta request size

For devices that does not specify a limit on its transfer size, the
get_chk_meta command may send down a single I/O retrieving the full
chunk metadata table. Resulting in large 2-4MB I/O requests. Instead,
split up the I/Os to a maximum of 256KB and issue them separately to
reduce memory requirements.

Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/lightnvm.c