Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242701
b: refs/heads/master
c: 6702ca1
h: refs/heads/master
i:
  242699: 0eb6e76
v: v3
  • Loading branch information
Nithin Sujir authored and James Bottomley committed Mar 23, 2011
1 parent 685fa7c commit 12a3286
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 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: 839900c69d5b8a07a4df8e9bd9d1e59a5c556811
refs/heads/master: 6702ca1dffbc864497b6f2c68543aad9bbf0bcee
19 changes: 5 additions & 14 deletions trunk/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1432,8 +1432,7 @@ static int bnx2fc_destroy(struct net_device *netdev)
struct net_device *phys_dev;
int rc = 0;

if (!rtnl_trylock())
return restart_syscall();
rtnl_lock();

mutex_lock(&bnx2fc_dev_lock);
#ifdef CONFIG_SCSI_BNX2X_FCOE_MODULE
Expand Down Expand Up @@ -1805,10 +1804,7 @@ static int bnx2fc_disable(struct net_device *netdev)
struct ethtool_drvinfo drvinfo;
int rc = 0;

if (!rtnl_trylock()) {
printk(KERN_ERR PFX "retrying for rtnl_lock\n");
return -EIO;
}
rtnl_lock();

mutex_lock(&bnx2fc_dev_lock);

Expand Down Expand Up @@ -1867,10 +1863,7 @@ static int bnx2fc_enable(struct net_device *netdev)
struct ethtool_drvinfo drvinfo;
int rc = 0;

if (!rtnl_trylock()) {
printk(KERN_ERR PFX "retrying for rtnl_lock\n");
return -EIO;
}
rtnl_lock();

BNX2FC_MISC_DBG("Entered %s\n", __func__);
mutex_lock(&bnx2fc_dev_lock);
Expand Down Expand Up @@ -1942,10 +1935,8 @@ static int bnx2fc_create(struct net_device *netdev, enum fip_state fip_mode)
return -EIO;
}

if (!rtnl_trylock()) {
printk(KERN_ERR "trying for rtnl_lock\n");
return -EIO;
}
rtnl_lock();

mutex_lock(&bnx2fc_dev_lock);

#ifdef CONFIG_SCSI_BNX2X_FCOE_MODULE
Expand Down

0 comments on commit 12a3286

Please sign in to comment.