Spdk/test
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
..
app lib: Return instead of exit in event 2018-03-08 11:47:01 -05:00
blobfs/rocksdb test: set all coremasks to use 8 or fewer cores. 2018-03-13 00:51:37 -04:00
blobstore autotest_common.sh: move to test/common 2018-02-27 20:37:27 -05:00
common test/common: exit with error in waitforlisten() if app crashed 2018-03-07 11:02:35 -05:00
config test/vm_setup: don't change global git config 2018-03-08 11:22:19 -05:00
cpp_headers build: add @: to remaining 'all' targets 2018-02-14 17:38:25 -05:00
iscsi_tgt test/iscsi_tgt: remove duplicated lines from ip_migration.sh 2018-03-16 14:07:32 -04:00
lib test/unit: move unittest.sh and dependencies here. 2018-03-13 18:44:34 -04:00
lvol test/lvol: fix the range of test cases when use "all" parameter 2018-03-19 16:16:30 -04:00
nvmf test: set all coremasks to use 8 or fewer cores. 2018-03-13 00:51:37 -04:00
pmem autotest: add test completion tracking 2018-03-01 17:13:41 -05:00
unit io_channel: invoke unregister_cb on same thread unregister was called 2018-03-19 21:50:19 -04:00
vhost test/vhost: Vhost blk hotremove test plan. 2018-03-09 13:17:14 -05:00
Makefile test: begin moving unit tests into test/unit 2017-06-16 16:43:48 -04:00
spdk_cunit.h scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00