Spdk/test/unit/lib/nvmf/ctrlr.c
JinYu 8fc9ac7b0e nvmf: complete all I/Os before changing sgroup to PAUSED
For the nvme device, I/Os are completed asynchronously. So we
need to check the outstanding I/Os before putting IO channel
when we hot remove the device. We should be sure that all the
I/Os have been completed when we change the sgroup->state to
PAUSED, so that we can update the subsystem.

Fix #615 #755

Change-Id: I0f727a7bd0734fa9be1193e1f574892ab3e68b55
Signed-off-by: JinYu <jin.yu@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452038
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2019-06-11 01:51:56 +00:00
..
.gitignore nvmf: Rename spdk_nvmf_session to spdk_nvmf_ctrlr 2017-08-08 13:46:48 -04:00
ctrlr_ut.c nvmf: complete all I/Os before changing sgroup to PAUSED 2019-06-11 01:51:56 +00:00
Makefile test: use spdk.unittest.mk for nvmf unit tests 2018-02-14 10:40:40 -05:00