aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/lightnvm/pblk-gc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/lightnvm/pblk-gc.c b/drivers/lightnvm/pblk-gc.c
index 26a52ea7ec45..901e49951ab5 100644
--- a/drivers/lightnvm/pblk-gc.c
+++ b/drivers/lightnvm/pblk-gc.c
@@ -290,8 +290,11 @@ fail_free_invalid_bitmap:
290fail_free_ws: 290fail_free_ws:
291 kfree(line_ws); 291 kfree(line_ws);
292 292
293 /* Line goes back to closed state, so we cannot release additional
294 * reference for line, since we do that only when we want to do
295 * gc to free line state transition.
296 */
293 pblk_put_line_back(pblk, line); 297 pblk_put_line_back(pblk, line);
294 kref_put(&line->ref, pblk_line_put);
295 atomic_dec(&gc->read_inflight_gc); 298 atomic_dec(&gc->read_inflight_gc);
296 299
297 pblk_err(pblk, "failed to GC line %d\n", line->id); 300 pblk_err(pblk, "failed to GC line %d\n", line->id);