From 7a30221de7490110ffde448cc0c808b9e260e5e4 Mon Sep 17 00:00:00 2001 From: Piotr Pelplinski Date: Fri, 8 Feb 2019 15:39:44 +0100 Subject: [PATCH] fio_plugin: fix hang in FIO This is fix for https://github.com/spdk/spdk/issues/523 Fio hangs on pthread_exit(NULL) from spdk thread. This happens because, pthread_exit tries to dlopen glibc and hangs on __lll_lock_wait. This patch prevents unmapping of glibc in fio_plugin and phtread_exit does not need to dlopen it again. Signed-off-by: Piotr Pelplinski Change-Id: I5078cc55e24841675d6ef4ecba43879dc3f73a4f Reviewed-on: https://review.gerrithub.io/c/443912 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- examples/bdev/fio_plugin/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/bdev/fio_plugin/Makefile b/examples/bdev/fio_plugin/Makefile index e9731dc8b6..07713e4c17 100644 --- a/examples/bdev/fio_plugin/Makefile +++ b/examples/bdev/fio_plugin/Makefile @@ -40,7 +40,7 @@ APP := fio_plugin C_SRCS = fio_plugin.c CFLAGS += -I$(CONFIG_FIO_SOURCE_DIR) -LDFLAGS += -shared -rdynamic +LDFLAGS += -shared -rdynamic -Wl,-z,nodelete SPDK_LIB_LIST = $(ALL_MODULES_LIST) SPDK_LIB_LIST += thread util bdev conf copy rpc jsonrpc json log sock trace