linux_dsm_epyc7002/include/target
Bart Van Assche 7b2cc7dc0d scsi: target: Simplify the code for waiting for command completion
Instead of embedding the completion that is used for waiting for command
completion in struct se_cmd, let the context that waits for command
completion allocate it. This makes it possible to have a single code path
for non-aborted and aborted commands in target_release_cmd_kref() and
avoids that transport_generic_free_cmd() has to call
cmd->se_tfo->release_cmd() directly. This patch does not change any
functionality. Note: transport_generic_free_cmd() only waits until the
se_cmd reference count has reached zero after it has set both
CMD_T_FABRIC_STOP and CMD_T_ABORTED.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-07-02 16:44:31 -04:00
..
iscsi scsi: target: Convert target drivers to use sbitmap 2018-06-19 22:02:25 -04:00
target_core_backend.h scsi: target: remove target_find_device 2018-06-26 12:27:06 -04:00
target_core_base.h scsi: target: Simplify the code for waiting for command completion 2018-07-02 16:44:31 -04:00
target_core_fabric.h scsi: target: Introduce transport_init_session() 2018-07-02 16:44:31 -04:00