commit | 03661b5f756c92b9924869334a2afa19753c4fe7 | [log] [tgz] |
---|---|---|
author | Hans Holmberg <hans.holmberg@cnexlabs.com> | Fri Oct 13 14:46:37 2017 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Oct 13 08:34:57 2017 -0600 |
tree | abe763a5913b21f5fb86440cd54b2e8be2e69e4e | |
parent | 37ce33d5756f4ba8bdd45371a1918ceeeba5b158 [diff] |
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>