Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195637
b: refs/heads/master
c: 9ee50e4
h: refs/heads/master
i:
  195635: 10cd6e4
v: v3
  • Loading branch information
Chris Leech authored and James Bottomley committed Apr 11, 2010
1 parent 61d42d2 commit 2fd755e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 593abc0720d5639ba21834b082adf83762af39be
refs/heads/master: 9ee50e48d8370dbcb42fa5b62b5bb3a9877e1f47
11 changes: 7 additions & 4 deletions trunk/drivers/scsi/fcoe/fcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1901,9 +1901,10 @@ static int fcoe_disable(const char *buffer, struct kernel_param *kp)
fcoe = fcoe_hostlist_lookup_port(netdev);
rtnl_unlock();

if (fcoe)
if (fcoe) {
fc_fabric_logoff(fcoe->ctlr.lp);
else
fcoe_ctlr_link_down(&fcoe->ctlr);
} else
rc = -ENODEV;

dev_put(netdev);
Expand Down Expand Up @@ -1950,9 +1951,11 @@ static int fcoe_enable(const char *buffer, struct kernel_param *kp)
fcoe = fcoe_hostlist_lookup_port(netdev);
rtnl_unlock();

if (fcoe)
if (fcoe) {
if (!fcoe_link_ok(fcoe->ctlr.lp))
fcoe_ctlr_link_up(&fcoe->ctlr);
rc = fc_fabric_login(fcoe->ctlr.lp);
else
} else
rc = -ENODEV;

dev_put(netdev);
Expand Down

0 comments on commit 2fd755e

Please sign in to comment.