linux/drivers/lightnvm
Zhoujie Wu 8a57fc3823 lightnvm: pblk: consider max hw sectors supported for max_write_pgs
When do GC, the number of read/write sectors are determined
by max_write_pgs(see gc_rq preparation in pblk_gc_line_prepare_ws).

Due to max_write_pgs doesn't consider max hw sectors
supported by nvme controller(128K), which leads to GC
tries to read 64 * 4K in one command, and see below error
caused by pblk_bio_map_addr in function pblk_submit_read_gc.

[ 2923.005376] pblk: could not add page to bio
[ 2923.005377] pblk: could not allocate GC bio (18446744073709551604)

Signed-off-by: Zhoujie Wu <zjwu@marvell.com>
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-10-09 08:25:08 -06:00
..
core.c lightnvm: introduce nvm_rq_to_ppa_list 2018-10-09 08:25:07 -06:00
Kconfig lightnvm: remove dependencies on BLK_DEV_NVME and PCI 2018-10-09 08:25:05 -06:00
Makefile lightnvm: remove rrpc 2018-01-05 08:50:12 -07:00
pblk-cache.c lightnvm: pblk: add SPDX license tag 2018-10-09 08:25:08 -06:00
pblk-core.c lightnvm: pblk: fix race on sysfs line state 2018-10-09 08:25:08 -06:00
pblk-gc.c lightnvm: pblk: add SPDX license tag 2018-10-09 08:25:08 -06:00
pblk-init.c lightnvm: pblk: consider max hw sectors supported for max_write_pgs 2018-10-09 08:25:08 -06:00
pblk-map.c lightnvm: pblk: add SPDX license tag 2018-10-09 08:25:08 -06:00
pblk-rb.c lightnvm: pblk: move ring buffer alloc/free rb init 2018-10-09 08:25:08 -06:00
pblk-read.c lightnvm: pblk: add SPDX license tag 2018-10-09 08:25:08 -06:00
pblk-recovery.c lightnvm: pblk: add SPDX license tag 2018-10-09 08:25:08 -06:00
pblk-rl.c lightnvm: pblk: add SPDX license tag 2018-10-09 08:25:08 -06:00
pblk-sysfs.c lightnvm: pblk: fix race on sysfs line state 2018-10-09 08:25:08 -06:00
pblk-trace.h lightnvm: pblk: add tracing for chunk resets 2018-10-09 08:25:07 -06:00
pblk-write.c lightnvm: pblk: encapsulate rb pointer operations 2018-10-09 08:25:08 -06:00
pblk.h lightnvm: pblk: move ring buffer alloc/free rb init 2018-10-09 08:25:08 -06:00