]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/lightnvm/pblk-init.c
lightnvm: pblk: start gc if needed during init
authorHans Holmberg <hans.holmberg@cnexlabs.com>
Fri, 13 Oct 2017 12:46:37 +0000 (14:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commit03661b5f756c92b9924869334a2afa19753c4fe7
treeabe763a5913b21f5fb86440cd54b2e8be2e69e4e
parent37ce33d5756f4ba8bdd45371a1918ceeeba5b158
lightnvm: pblk: start gc if needed during init

Start GC if needed, directly after init, as we might
need to garbage collect in order to make room for user writes.

Create a helper function that allows to kick GC without exposing the
internals of the GC/rate-limiter interaction.

Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-gc.c
drivers/lightnvm/pblk-init.c
drivers/lightnvm/pblk-rl.c
drivers/lightnvm/pblk.h