summaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorBart Van Assche2018-06-22 23:52:58 +0200
committerMartin K. Petersen2018-07-02 22:44:31 +0200
commitedf46eee59c5acd829c3b6a564c26b5386362ea3 (patch)
tree890c3b07271518cb35e79977e6f28d917f6fc29b /include/target
parentscsi: target: Simplify transport_generic_free_cmd() (1/2) (diff)
downloadkernel-qcow2-linux-edf46eee59c5acd829c3b6a564c26b5386362ea3.tar.gz
kernel-qcow2-linux-edf46eee59c5acd829c3b6a564c26b5386362ea3.tar.xz
kernel-qcow2-linux-edf46eee59c5acd829c3b6a564c26b5386362ea3.zip
scsi: target: Simplify transport_generic_free_cmd() (2/2)
Since target_wait_free_cmd() skips TMFs with no associated LUN, it is safe to call that function for such commands. Use this to simplify transport_generic_free_cmd(). The only functional change in this patch is that CMD_T_FABRIC_STOP gets set for TMFs with no associated LUN by transport_generic_free_cmd(). 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>
Diffstat (limited to 'include/target')
0 files changed, 0 insertions, 0 deletions