Spdk/lib/scsi
Shuhei Matsumoto 6dd09113e5 scsi: Serialize LUN reset execution
Task management functions don't require performance. Serializing
execution of task managment functions will sipmlify and stabilize
the logic and will be helpful for upcoming patches to support
other task management functions.

This patch introduces two queues, pending and submitted queue,
and serializes LUN reset exection and makes LUN hot removal
wait for LUN reset.

Besides, checking if LUN is NULL is moved to the upper layer as
same as IO task submission.

Change-Id: Ia0cf3f437a745ee70fc9b17744cc63c833690dda
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/434764
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2018-12-10 20:34:11 +00:00
..
dev.c scsi: Serialize LUN reset execution 2018-12-10 20:34:11 +00:00
lun.c scsi: Serialize LUN reset execution 2018-12-10 20:34:11 +00:00
Makefile scsi: remove lun_db 2018-01-09 13:56:00 -05:00
port.c scsi: add iSCSI initiator port TransportID 2018-12-05 16:04:06 +00:00
scsi_bdev.c scsi: Differentiate callback function about LUN reset from other TMFs 2018-12-06 22:35:40 +00:00
scsi_internal.h scsi: Serialize LUN reset execution 2018-12-10 20:34:11 +00:00
scsi_rpc.c rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
scsi.c lib/trace: show specific usage of trace mask 2018-11-30 14:52:28 +00:00
task.c iscsi: Factor out copy scsi status when it is not good 2018-06-11 22:23:55 +00:00