Skip to content

Commit d9e9ab5

Browse files
Brian UchinoJames Bottomley
authored andcommitted
[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>
1 parent 666d076 commit d9e9ab5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/scsi/fnic/fnic_fcs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ void fnic_flush_tx(struct fnic *fnic)
617617
struct sk_buff *skb;
618618
struct fc_frame *fp;
619619

620-
while ((skb = skb_dequeue(&fnic->frame_queue))) {
620+
while ((skb = skb_dequeue(&fnic->tx_queue))) {
621621
fp = (struct fc_frame *)skb;
622622
fnic_send_frame(fnic, fp);
623623
}

0 commit comments

Comments
 (0)