Commit d9e9ab56 authored by Brian Uchino's avatar Brian Uchino Committed by James Bottomley

[SCSI] fnic: Change fnic_flush_tx() to flush tx instead of rx queue

fnic_flush_tx() is used to send frames held while fabric login
is in progress.  The frames are held in tx_queue, but
fnic_flush_tx() was incorrectly flushing from recv_queue which
is used for received frames.
Signed-off-by: default avatarBrian Uchino <buchino@cisco.com>
Signed-off-by: default avatarAbhijeet Joglekar <abjoglek@cisco.com>
Signed-off-by: default avatarRobert Love <robert.w.love@intel.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 666d0764
...@@ -617,7 +617,7 @@ void fnic_flush_tx(struct fnic *fnic) ...@@ -617,7 +617,7 @@ void fnic_flush_tx(struct fnic *fnic)
struct sk_buff *skb; struct sk_buff *skb;
struct fc_frame *fp; struct fc_frame *fp;
while ((skb = skb_dequeue(&fnic->frame_queue))) { while ((skb = skb_dequeue(&fnic->tx_queue))) {
fp = (struct fc_frame *)skb; fp = (struct fc_frame *)skb;
fnic_send_frame(fnic, fp); fnic_send_frame(fnic, fp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment