From 68b49203a76e704783e8159e39353e1cd95e941c Mon Sep 17 00:00:00 2001 From: Wojciech Malikowski Date: Tue, 5 Feb 2019 07:04:46 -0500 Subject: [PATCH] lib/ftl: Change order of relocation queues processing ftl_process_reloc should process free_queue in first place (this will start read operations) and then process write queue. Change-Id: I3a44b3651cc1526f8a024330472f94aa8d818193 Signed-off-by: Wojciech Malikowski Reviewed-on: https://review.gerrithub.io/c/443403 Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- lib/ftl/ftl_reloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }