diff options
author | Abhijeet Joglekar <abjoglek@cisco.com> | 2009-02-27 13:54:35 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-06 16:35:47 -0500 |
commit | 1f6ff364ceda516f88351a8ab640e656beed0b26 (patch) | |
tree | 227a5f6e39372eaf3c898d1de8feb2b88df707b0 /drivers/scsi/libfc/fc_lport.c | |
parent | 33dd6f92a1a7ad85c54d47fd9d73371a32c0bde4 (diff) |
[SCSI] libfc: Pass lport in exch_mgr_reset
fc_exch_mgr structure is private to fc_exch.c. To export exch_mgr_reset to
transport, transport needs access to the exch manager. Change
exch_mgr_reset to use lport param which is the shared structure between
libFC and transport.
Alternatively, fc_exch_mgr definition can be moved to libfc.h so that lport
can be accessed from mp*.
Signed-off-by: Abhijeet Joglekar <abjoglek@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/libfc/fc_lport.c')
-rw-r--r-- | drivers/scsi/libfc/fc_lport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c index 0b9bdb1fb807..5db223ce3b25 100644 --- a/drivers/scsi/libfc/fc_lport.c +++ b/drivers/scsi/libfc/fc_lport.c | |||
@@ -663,7 +663,7 @@ int fc_lport_destroy(struct fc_lport *lport) | |||
663 | { | 663 | { |
664 | lport->tt.frame_send = fc_frame_drop; | 664 | lport->tt.frame_send = fc_frame_drop; |
665 | lport->tt.fcp_abort_io(lport); | 665 | lport->tt.fcp_abort_io(lport); |
666 | lport->tt.exch_mgr_reset(lport->emp, 0, 0); | 666 | lport->tt.exch_mgr_reset(lport, 0, 0); |
667 | return 0; | 667 | return 0; |
668 | } | 668 | } |
669 | EXPORT_SYMBOL(fc_lport_destroy); | 669 | EXPORT_SYMBOL(fc_lport_destroy); |
@@ -973,7 +973,7 @@ static void fc_lport_enter_reset(struct fc_lport *lport) | |||
973 | 973 | ||
974 | lport->tt.disc_stop(lport); | 974 | lport->tt.disc_stop(lport); |
975 | 975 | ||
976 | lport->tt.exch_mgr_reset(lport->emp, 0, 0); | 976 | lport->tt.exch_mgr_reset(lport, 0, 0); |
977 | fc_host_fabric_name(lport->host) = 0; | 977 | fc_host_fabric_name(lport->host) = 0; |
978 | fc_host_port_id(lport->host) = 0; | 978 | fc_host_port_id(lport->host) = 0; |
979 | 979 | ||