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 ae0f518e4f.

Change-Id: I416ff69552ab863b6722931c9ef086f119439ba5
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/386248
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Dariusz Stojaczyk 2017-11-08 15:30:51 +01:00 committed by Daniel Verkamp
parent a658245f40
commit ec3c0bb2f0

View File

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