[Open-FCoE] [RFC PATCH 3/5] libfc: wait for logo response during fcoe interface destroy

Vasu Dev vasu.dev at intel.com
Fri Jan 14 20:13:39 UTC 2011


Detach from netdev after logo is processed.

Signed-off-by: Vasu Dev <vasu.dev at intel.com>
---

 drivers/scsi/fcoe/fcoe.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index b12c08c..470cc75 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -852,6 +852,9 @@ static void fcoe_if_destroy(struct fc_lport *lport)
 	/* Logout of the fabric */
 	fc_fabric_logoff(lport);
 
+	fcoe_interface_cleanup(fcoe);
+	list_del(&fcoe->list);
+
 	/* Cleanup the fc_lport */
 	fc_lport_destroy(lport);
 
@@ -2099,8 +2102,6 @@ static int fcoe_destroy(const char *buffer, struct kernel_param *kp)
 		rc = -ENODEV;
 		goto out_putdev;
 	}
-	fcoe_interface_cleanup(fcoe);
-	list_del(&fcoe->list);
 	/* RTNL mutex is dropped by fcoe_if_destroy */
 	fcoe_if_destroy(fcoe->ctlr.lp);
 




More information about the devel mailing list