scsi: fc: provide fc_bsg_to_rport() helper
Provide fc_bsg_to_rport() helper that will become handy when we're moving from struct fc_bsg_job to a plain struct bsg_job. Also move all LLDDs to use the new helper. Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Acked-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
cd21c605b2
commit
1d69b1222a
@@ -1822,7 +1822,7 @@ unlock_out:
|
||||
static int ibmvfc_bsg_request(struct fc_bsg_job *job)
|
||||
{
|
||||
struct ibmvfc_host *vhost = shost_priv(fc_bsg_to_shost(job));
|
||||
struct fc_rport *rport = job->rport;
|
||||
struct fc_rport *rport = fc_bsg_to_rport(job);
|
||||
struct ibmvfc_passthru_mad *mad;
|
||||
struct ibmvfc_event *evt;
|
||||
union ibmvfc_iu rsp_iu;
|
||||
|
Reference in New Issue
Block a user