dc6d89b925
One previous patch refined LUN hotplug process and updated the comment but we still had checked not only outstanding tasks but also pending tasks to be completed or aborted. But, as written in the comment, we can wait for only outstanding tasks now. Management task is the highest priority and is pending only when there is any outstanding management task, and the completion callback of management task executes the first pending management task. The last patch changed us to abort all pending management tasks after stopping new submission. Hence we can do this change not only for IO task but also for management task. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I66056f2a02af05d5bccaf6462c6f48c608cd0ca3 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/474032 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>