diff --git a/lib/ftl/ftl_reloc.c b/lib/ftl/ftl_reloc.c index cfe28fb18..756c7003f 100644 --- a/lib/ftl/ftl_reloc.c +++ b/lib/ftl/ftl_reloc.c @@ -572,10 +572,10 @@ ftl_reloc_release(struct ftl_band_reloc *breloc) static void ftl_process_reloc(struct ftl_band_reloc *breloc) { - ftl_reloc_process_write_queue(breloc); - ftl_reloc_process_free_queue(breloc); + ftl_reloc_process_write_queue(breloc); + if (ftl_reloc_done(breloc)) { ftl_reloc_release(breloc); }