numam-spdk/lib/scsi
Ziye Yang f8dcdfa99e scsi: Make the pending tasks handling logic correct for reset
In principle, we should not have active tasks, which means
that lun->tasks should be empty. But for the exceptional case,
we may still need to handle those active tasks, to make
the scsi related application continue running instead of quit.

We should not directly call spdk_scsi_lun_complete_task since
those tasks are already sent to bdev layer. And finally, those
tasks will be return (even aborted) by call backs. So we only need to
set task status to condition, but
not call spdk_scsi_lun_complete_task directly.

Change-Id: I6af2bda0f0b1de7b0c655d2ac2980ddca48c1162
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/386817
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2017-12-07 13:43:52 -05:00
..
dev.c scsi: Remove the claimed flag from LUN 2017-12-07 12:30:19 -05:00
lun_db.c scsi: remove delete_lun RPC call and move claimed flag 2017-03-13 11:27:22 -07:00
lun.c scsi: Make the pending tasks handling logic correct for reset 2017-12-07 13:43:52 -05:00
Makefile bdev: add API to translate to SCSI status 2017-05-04 09:11:42 -07:00
port.c scsi: remove port from scsi_dev dynamically 2017-10-12 15:46:14 -04:00
scsi_bdev.c log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
scsi_internal.h scsi: Make the pending tasks handling logic correct for reset 2017-12-07 13:43:52 -05:00
scsi_rpc.c scsi: Remove the claimed flag from LUN 2017-12-07 12:30:19 -05:00
scsi.c log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
task.c bdev: rename blockdev instances to bdev 2017-07-14 13:31:30 -04:00