aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/target
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2019-01-25 10:34:46 -0800
committerMartin K. Petersen <martin.petersen@oracle.com>2019-02-04 21:27:20 -0500
commit83f85b8ec305be9d65284de2921d8eeb6c7fcf12 (patch)
tree5e889ea7a3879544765763b18202a8364adfd7a6 /include/target
parentscsi: target/core: Simplify the LUN RESET implementation (diff)
downloadwireguard-linux-83f85b8ec305be9d65284de2921d8eeb6c7fcf12.tar.xz
wireguard-linux-83f85b8ec305be9d65284de2921d8eeb6c7fcf12.zip
scsi: target/core: Inline transport_lun_remove_cmd()
Remove the code that clears .se_lun from transport_cmd_check_stop_to_fabric() such that the transport_lun_remove_cmd() call can be moved into target_release_cmd_kref(). Because this guarantees that transport_lun_remove_cmd() will be called exactly once, it is safe to change the cmpxchg() call into a test of se_cmd.lun_ref_active. Inline transport_lun_remove_cmd() because it is not worth to keep it as a separate function. Reviewed-by: Hannes Reinecke <hare@suse.com> Cc: Nicholas Bellinger <nab@linux-iscsi.org> Cc: Mike Christie <mchristi@redhat.com> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/target')
0 files changed, 0 insertions, 0 deletions