Detach from netdev after logo is processed.
Signed-off-by: Vasu Dev <[email protected]>
---
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);
_______________________________________________
devel mailing list
[email protected]
https://lists.open-fcoe.org/mailman/listinfo/devel