]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
lightnvm: pblk: fix changing GC group list for a line
authorRakesh Pandit <rakesh@tuxera.com>
Fri, 13 Oct 2017 12:46:28 +0000 (14:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commit27b978725d895e704aab44b99242a0514485d798
tree34ce4c925e130fec1ab01a223ab8e8d540755ccb
parente6b754c252bacebdfbe3c57e790431ab8f445d1f
lightnvm: pblk: fix changing GC group list for a line

pblk_line_gc_list seems to had a bug since the introduction of pblk in
getting GC list for a line. In b20ba1bc7 while redesigning the GC
algorithm, the naming for the GC thresholds was altered, but the
values for high_thrs and mid_thrs were not. The result is that when
moving to the GC lists, the mid threshold is never evaluated.

Fixes: a4bd217b4("lightnvm: physical block device (pblk) target")
Signed-off-by: Rakesh Pandit <rakesh@tuxera.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-init.c