Spdk/test
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
..
app bdev_svc: convert to spdk_app_parse_args() 2017-12-01 11:49:23 -05:00
blobfs/rocksdb test/blobfs: add timing for rocksdb benchmarks 2017-09-20 19:33:50 -04:00
config Add readme and script for fedora 26 vm configuration 2017-12-06 16:36:05 -05:00
cpp_headers build: include spdk.app.mk in all app Makefiles 2017-11-15 17:57:07 -05:00
iscsi_tgt scsi: Remove the claimed flag from LUN 2017-12-07 12:30:19 -05:00
lib test/nvme: disable AER in nightly tests 2017-12-01 17:00:54 -05:00
lvol test/lvol: Check if lvol store exists after vhost reboot 2017-12-01 17:08:35 -05:00
nvmf test:update common.sh to get port IP in Ubuntu system 2017-12-06 18:54:49 -05:00
pmem bdev/pmem: require name in construct_pmem_bdev RPC 2017-12-04 18:51:14 -05:00
unit scsi: Make the pending tasks handling logic correct for reset 2017-12-07 13:43:52 -05:00
vhost test/vhost/initiator: specify RPC address via -r 2017-12-05 13:16:57 -05:00
Makefile test: begin moving unit tests into test/unit 2017-06-16 16:43:48 -04:00
spdk_cunit.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00