Spdk/test/unit/lib/nvmf
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
..
ctrlr_bdev.c trace: inline tpoint_mask checking 2018-09-04 17:09:25 +00:00
ctrlr_discovery.c nvmf: Remove qpair_is_idle 2019-03-15 19:19:17 +00:00
ctrlr.c nvmf: complete all I/Os before changing sgroup to PAUSED 2019-06-11 01:51:56 +00:00
rdma.c trace: remove short_name 2019-05-02 08:41:56 +00:00
subsystem.c nvmf: add asynchronous event for reservation notificaiton 2019-04-23 16:30:24 +00:00
tcp.c thread: Add a mechanism to exit a lightweight thread 2019-05-22 04:23:17 +00:00
Makefile nvmf: Collapse request.c into ctrlr.c 2019-02-04 18:11:33 +00:00