numam-spdk/test/nvmf
Jim Harris 7b7799bf9c fio_plugin: switch to LD_PRELOAD instead of dynamically loading
fio has a race between reap_threads() and free_ioengine().  free_ioengine()
will call the ioengine's cleanup routine and then dlclose it if it
is dynamically linked (like the spdk fio plugin).  free_ioengine() does
not set td->io_ops = NULL though until after dlclose() is complete.  If
reap_threads() tries to dereference td->io_ops after our plugin has been
closed but before io_ops was set to NULL, it will segfault.

Solution (until an upstream fio fix is available) is to use LD_PRELOAD
instead.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ide4eb3cb92a636513289107fc211fdf1f98b616f

Reviewed-on: https://review.gerrithub.io/365272
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Ziye Yang <optimistyzy@gmail.com>
2017-06-14 11:12:29 -04:00
..
discovery test/nvmf: use stub application 2017-05-30 17:59:44 -04:00
filesystem test/nvmf: use stub application 2017-05-30 17:59:44 -04:00
fio test/nvmf: use stub application 2017-05-30 17:59:44 -04:00
host fio_plugin: switch to LD_PRELOAD instead of dynamically loading 2017-06-14 11:12:29 -04:00
multiconnection test/nvmf: use stub application 2017-05-30 17:59:44 -04:00
nvme_cli test/nvmf: use stub application 2017-05-30 17:59:44 -04:00
rpc test/nvmf: use stub application 2017-05-30 17:59:44 -04:00
shutdown test/nvmf: use stub application 2017-05-30 17:59:44 -04:00
common.sh test/nvmf: use stub application 2017-05-30 17:59:44 -04:00
nvmf.conf test: Create malloc bdev dynamically for nvmf test cases. 2016-10-18 09:51:32 -07:00
nvmf.sh test/nvmf: use stub application 2017-05-30 17:59:44 -04:00