Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173669
b: refs/heads/master
c: 1f4aed8
h: refs/heads/master
i:
  173667: f155b2f
v: v3
  • Loading branch information
Joe Eykholt authored and James Bottomley committed Dec 4, 2009
1 parent 81a14fa commit 0496745
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 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: 0f51c2e54c0bfdb6b02c53f6d7dd9b35f91821b6
refs/heads/master: 1f4aed818d26eb9ed54520fbeb85d5ee691baa94
17 changes: 4 additions & 13 deletions trunk/drivers/scsi/fcoe/libfcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ static void fcoe_ctlr_reset_fcfs(struct fcoe_ctlr *fip)
void fcoe_ctlr_destroy(struct fcoe_ctlr *fip)
{
cancel_work_sync(&fip->recv_work);
spin_lock_bh(&fip->fip_recv_list.lock);
__skb_queue_purge(&fip->fip_recv_list);
spin_unlock_bh(&fip->fip_recv_list.lock);
skb_queue_purge(&fip->fip_recv_list);

spin_lock_bh(&fip->lock);
fip->state = FIP_ST_DISABLED;
Expand Down Expand Up @@ -1005,13 +1003,11 @@ static void fcoe_ctlr_recv_clr_vlink(struct fcoe_ctlr *fip,
* @fip: The FCoE controller that received the packet
* @skb: The received FIP packet
*
* This is called from NET_RX_SOFTIRQ.
* This may be called from either NET_RX_SOFTIRQ or IRQ.
*/
void fcoe_ctlr_recv(struct fcoe_ctlr *fip, struct sk_buff *skb)
{
spin_lock_bh(&fip->fip_recv_list.lock);
__skb_queue_tail(&fip->fip_recv_list, skb);
spin_unlock_bh(&fip->fip_recv_list.lock);
skb_queue_tail(&fip->fip_recv_list, skb);
schedule_work(&fip->recv_work);
}
EXPORT_SYMBOL(fcoe_ctlr_recv);
Expand Down Expand Up @@ -1251,13 +1247,8 @@ static void fcoe_ctlr_recv_work(struct work_struct *recv_work)
struct sk_buff *skb;

fip = container_of(recv_work, struct fcoe_ctlr, recv_work);
spin_lock_bh(&fip->fip_recv_list.lock);
while ((skb = __skb_dequeue(&fip->fip_recv_list))) {
spin_unlock_bh(&fip->fip_recv_list.lock);
while ((skb = skb_dequeue(&fip->fip_recv_list)))
fcoe_ctlr_recv_handler(fip, skb);
spin_lock_bh(&fip->fip_recv_list.lock);
}
spin_unlock_bh(&fip->fip_recv_list.lock);
}

/**
Expand Down

0 comments on commit 0496745

Please sign in to comment.