diff options
author | Zhoujie Wu <zjwu@marvell.com> | 2018-10-09 14:12:14 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-10-09 17:25:08 +0300 |
commit | 8a57fc3823d08edb1661a06d9e0a8c2365ac561e (patch) | |
tree | 6b03661cf8578b12a0072c1539fe48ec2104b90c /drivers/lightnvm/pblk-rb.c | |
parent | a70985f83c625a5eaf618be81621e5e4521a66c6 (diff) | |
download | linux-8a57fc3823d08edb1661a06d9e0a8c2365ac561e.tar.xz |
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>
Diffstat (limited to 'drivers/lightnvm/pblk-rb.c')
0 files changed, 0 insertions, 0 deletions