Steffen Maier 67b465250e scsi: fc: start decoupling fc_block_scsi_eh from scsi_cmnd
Scsi_cmnd is an unsuitable argument for eh_device_reset_handler(),
eh_target_reset_handler(), and eh_host_reset_handler() which do not have
the scope of one single SCSI command.  These callbacks tend to use
fc_block_scsi_eh() requiring scsi_cmnd.  In order to start decoupling
above eh callbacks from scsi_cmnd, introduce a new variant of the
function called fc_block_rport() taking an fc_rport as argument.
Refactor the old fc_block_scsi_eh() to simply delegate to
fc_block_rport().

Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-08-07 14:04:02 -04:00
..
2012-02-19 08:08:58 -06:00
2016-07-20 19:49:41 -04:00
2016-01-27 20:36:10 +08:00
2017-05-04 12:19:44 -07:00
2017-07-06 12:10:33 -07:00
2015-12-02 16:36:14 -05:00
2017-07-06 12:10:33 -07:00
2016-02-23 21:27:02 -05:00
2015-11-09 17:11:57 -08:00
2017-02-21 11:51:42 -08:00
2017-04-11 20:55:20 -04:00
2015-05-18 13:35:56 -04:00