diff options
| author | Bart Van Assche <[email protected]> | 2019-01-25 10:34:46 -0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-02-04 21:27:20 -0500 |
| commit | 83f85b8ec305be9d65284de2921d8eeb6c7fcf12 (patch) | |
| tree | 5e889ea7a3879544765763b18202a8364adfd7a6 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 2281c95fe751325874d135b237ecdcd3bc34cc26 (diff) | |
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 <[email protected]>
Cc: Nicholas Bellinger <[email protected]>
Cc: Mike Christie <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions