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 <wojciech.malikowski@intel.com>
Reviewed-on: https://review.gerrithub.io/c/443403
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Wojciech Malikowski 2019-02-05 07:04:46 -05:00 committed by Jim Harris
parent 7f21e8c571
commit 68b49203a7

View File

@ -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);
}