On 6/12/23 09:50, mwilck@xxxxxxxx wrote:
From: Martin Wilck <mwilck@xxxxxxxx> 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 <hch@xxxxxx> Suggested-by: Bart Van Assche <bvanassche@xxxxxxx> Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> Reviewed-by: Hannes Reinecke <hare@xxxxxxx> Cc: Karan Tilak Kumar <kartilak@xxxxxxxxx> Cc: Sesidhar Baddela <sebaddel@xxxxxxxxx>
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>