]> Pileus Git - ~andy/linux/commitdiff
[SCSI] libfc: post reset event on lport reset
authorVasu Dev <vasu.dev@intel.com>
Mon, 20 Jun 2011 23:59:46 +0000 (16:59 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 29 Jun 2011 21:33:22 +0000 (16:33 -0500)
Post an FCH_EVT_LIPRESET event on lport reset as
as lport reset occurs on FIP cleat virtual link,
this could be due to change in fcoe vlan and this
event will allow user app fcoemon to switch to
new fcoe vlan.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libfc/fc_lport.c

index 389ab80aef0a3d4aaf9f7c173e19a7cf2f4c2e00..e008b1673507b7e6687597b6c5b97046e0acac52 100644 (file)
@@ -1025,6 +1025,8 @@ static void fc_lport_enter_reset(struct fc_lport *lport)
                        fc_vport_set_state(lport->vport, FC_VPORT_LINKDOWN);
        }
        fc_lport_state_enter(lport, LPORT_ST_RESET);
+       fc_host_post_event(lport->host, fc_get_event_number(),
+                          FCH_EVT_LIPRESET, 0);
        fc_vports_linkchange(lport);
        fc_lport_reset_locked(lport);
        if (lport->link_up)