diff options
author | Brian Uchino <buchino@cisco.com> | 2010-04-09 17:22:49 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-04-11 15:02:37 -0400 |
commit | d9e9ab56b687da0b3ecb29f7a77f25aa7ae078fb (patch) | |
tree | fd37928fad590202362b20f6a4723f5326a30222 /drivers | |
parent | 666d07646a29040e3dc4caeb679166559e152ff2 (diff) |
[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: Brian Uchino <buchino@cisco.com>
Signed-off-by: Abhijeet Joglekar <abjoglek@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/fnic/fnic_fcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fnic/fnic_fcs.c b/drivers/scsi/fnic/fnic_fcs.c index 5259888fbfb1..2b48d79bad94 100644 --- a/drivers/scsi/fnic/fnic_fcs.c +++ b/drivers/scsi/fnic/fnic_fcs.c | |||
@@ -617,7 +617,7 @@ void fnic_flush_tx(struct fnic *fnic) | |||
617 | struct sk_buff *skb; | 617 | struct sk_buff *skb; |
618 | struct fc_frame *fp; | 618 | struct fc_frame *fp; |
619 | 619 | ||
620 | while ((skb = skb_dequeue(&fnic->frame_queue))) { | 620 | while ((skb = skb_dequeue(&fnic->tx_queue))) { |
621 | fp = (struct fc_frame *)skb; | 621 | fp = (struct fc_frame *)skb; |
622 | fnic_send_frame(fnic, fp); | 622 | fnic_send_frame(fnic, fp); |
623 | } | 623 | } |