numam-spdk/lib/util
Jim Harris a8d3ac0cf4 io_channel: invoke unregister_cb on same thread unregister was called
The unregister callback is only invoked after all I/O channels related
to the I/O device have been freed.  The last I/O channel to be freed
might be on a thread different than the thread where spdk_io_device_unregister
was called.  If this is the case, send an event to the latter thread
so that the callback gets called on the same thread as spdk_io_device_unregister.

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

Reviewed-on: https://review.gerrithub.io/404414
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2018-03-19 21:50:19 -04:00
..
bit_array.c env: Rename spdk_malloc/zmalloc/realloc/free to spdk_dma_(func) 2017-05-31 15:30:27 -04:00
cpuset.c lib/util: return const pointer from spdk_cpuset_fmt 2018-02-20 13:05:36 -05:00
crc16.c util/crc16: add crc16 library support and unit tests 2017-12-20 15:12:26 -05:00
crc32_ieee.c util: add CRC32 utility functions 2017-08-02 19:47:35 -04:00
crc32.c util: add CRC32 utility functions 2017-08-02 19:47:35 -04:00
crc32c.c util/crc32c: add SSE 4.2 CRC32 instruction support 2017-08-02 19:47:35 -04:00
fd.c util/fd: drop fallback from spdk_fd_get_blocklen() 2017-08-11 19:36:30 -04:00
io_channel.c io_channel: invoke unregister_cb on same thread unregister was called 2018-03-19 21:50:19 -04:00
Makefile util: add uuid.h to wrap libuuid 2018-03-08 10:49:51 -05:00
strerror_tls.c util: add spdk_strerror() wrapper with TLS support 2018-01-04 15:00:09 -05:00
string.c util: add spdk_mem_all_zero() function 2018-02-23 10:05:32 -05:00
uuid.c util: add uuid.h to wrap libuuid 2018-03-08 10:49:51 -05:00