Commit 68b49203 authored by Wojciech Malikowski's avatar Wojciech Malikowski Committed by Jim Harris
Browse files

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: default avatarWojciech Malikowski <wojciech.malikowski@intel.com>
Reviewed-on: https://review.gerrithub.io/c/443403


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 7f21e8c5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
	}