diff options
author | Martin Wilck <[email protected]> | 2023-06-14 12:36:15 +0200 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2023-06-16 12:19:59 -0400 |
commit | 31950192d939a969415d0e1da4c62598023b0850 (patch) | |
tree | 01bb559e2921e0f34a136eb4bde79bcd6364692a /scripts/generate_rust_analyzer.py | |
parent | e20fff8a1f4940f46be888bd175412c2e3e64e96 (diff) |
scsi: core: Replace scsi_target_block() with scsi_block_targets()
All callers (fc_remote_port_delete(), __iscsi_block_session(),
__srp_start_tl_fail_timers(), srp_reconnect_rport(), snic_tgt_del()) pass
parent devices of scsi_target devices to scsi_target_block().
Rename the function to scsi_block_targets(), and simplify it by assuming
that it is always passed a parent device. Also, have callers pass the
Scsi_Host pointer to scsi_block_targets(), as every caller has this pointer
readily available.
Suggested-by: Christoph Hellwig <[email protected]>
Suggested-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin Wilck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: Karan Tilak Kumar <[email protected]>
Cc: Sesidhar Baddela <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions