[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>
Tento commit je obsažen v:

odevzdal
James Bottomley

rodič
33dd6f92a1
revize
1f6ff364ce
@@ -663,7 +663,7 @@ int fc_lport_destroy(struct fc_lport *lport)
|
||||
{
|
||||
lport->tt.frame_send = fc_frame_drop;
|
||||
lport->tt.fcp_abort_io(lport);
|
||||
lport->tt.exch_mgr_reset(lport->emp, 0, 0);
|
||||
lport->tt.exch_mgr_reset(lport, 0, 0);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(fc_lport_destroy);
|
||||
@@ -973,7 +973,7 @@ static void fc_lport_enter_reset(struct fc_lport *lport)
|
||||
|
||||
lport->tt.disc_stop(lport);
|
||||
|
||||
lport->tt.exch_mgr_reset(lport->emp, 0, 0);
|
||||
lport->tt.exch_mgr_reset(lport, 0, 0);
|
||||
fc_host_fabric_name(lport->host) = 0;
|
||||
fc_host_port_id(lport->host) = 0;
|
||||
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele