mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
lightnvm: pblk: line reference fix in GC
Fixes the GC error case when moving a line back to closed state while releasing additional references. Signed-off-by: Igor Konopko <[email protected]> Reviewed-by: Hans Holmberg <[email protected]> Reviewed-by: Javier González <[email protected]> Signed-off-by: Matias Bjørling <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
662156641b
commit
7e5434eece
1 changed files with 4 additions and 1 deletions
|
|
@ -290,8 +290,11 @@ fail_free_invalid_bitmap:
|
|||
fail_free_ws:
|
||||
kfree(line_ws);
|
||||
|
||||
/* Line goes back to closed state, so we cannot release additional
|
||||
* reference for line, since we do that only when we want to do
|
||||
* gc to free line state transition.
|
||||
*/
|
||||
pblk_put_line_back(pblk, line);
|
||||
kref_put(&line->ref, pblk_line_put);
|
||||
atomic_dec(&gc->read_inflight_gc);
|
||||
|
||||
pblk_err(pblk, "failed to GC line %d\n", line->id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue