Spdk/lib/scsi
Shuhei Matsumoto db91cfe045 lib/scsi: Stop submitting new task and abort pending tasks for LUN hotplug
Previously iSCSI LUN hotplug had critical bugs and we had no choice but
accept submitting new tasks as late as possible. We fixed the bug now and
we can stop submitting new task immediately after starting LUN removal
process.

By this change, no task is submitted to the LUN and previously queued
tasks have no chance to be kicked. Hence we execute them instead after
stopping new task submission.

This change simplifies LUN hotplug process and reproduce LUN hotplug
issues solidly if we don't have the fix.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I9a33e6a217978b0863d15aaff3d35880dbdccfd4
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/473596
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: Stop submitting new task and abort pending 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