Spdk/lib/scsi
Shuhei Matsumoto dc6d89b925 lib/scsi: Really wait for only outstanding tasks for LUN hotplug
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>
2019-11-14 18:08:12 +00:00
..
dev.c lib/scsi: Stop submitting new task and abort pending tasks for LUN hotplug 2019-11-14 18:08:12 +00:00
lun.c lib/scsi: Really wait for only outstanding tasks for LUN hotplug 2019-11-14 18:08:12 +00:00
Makefile scsi: add persistent reservation out with register feature support 2019-05-24 23:04:03 +00:00
port.c scsi: add iSCSI initiator port TransportID 2018-12-05 16:04:06 +00:00
scsi_bdev.c lib/scsi: Free bdev_io just after getting completion from bdev for management I/O 2019-10-22 17:20:51 +00:00
scsi_internal.h lib/scsi: Close block device on the thread which opened it 2019-11-05 12:10:08 +00:00
scsi_pr.c scsi: fix error break when checking SCSI reservation 2019-07-04 08:15:44 +00:00
scsi_rpc.c rpc: Rename get_scsi_devices to scsi_get_devices 2019-10-03 23:01:27 +00:00
scsi.c trace: remove short_name 2019-05-02 08:41:56 +00:00
task.c lib/scsi: Assert if ref count of task goes negative 2019-11-14 18:08:12 +00:00