Commit ec3c0bb2 authored by Dariusz Stojaczyk's avatar Dariusz Stojaczyk Committed by Daniel Verkamp
Browse files

Revert "fio_plugin: allow stopping poller after it's thread has been stopped"



Now that there's a fio_thread
at the time of calling spdk_bdev_finish,
this work-around is no longer
necessary.

This reverts commit ae0f518e.

Change-Id: I416ff69552ab863b6722931c9ef086f119439ba5
Signed-off-by: default avatarDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/386248


Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent a658245f
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -164,10 +164,13 @@ spdk_fio_stop_poller(struct spdk_bdev_poller **ppoller)
	fio_poller = *(struct spdk_fio_poller **)ppoller;

	fio_thread = g_thread;
	if (fio_thread) {
		TAILQ_REMOVE(&fio_thread->pollers, fio_poller, link);
	if (!fio_thread) {
		SPDK_ERRLOG("Expected local thread to be initialized, but it was not.\n");
		return;
	}

	TAILQ_REMOVE(&fio_thread->pollers, fio_poller, link);

	free(fio_poller);
	*ppoller = NULL;
}