]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
scsi: libfc: Do not drop out-of-order frames
authorHannes Reinecke <hare@suse.de>
Thu, 13 Oct 2016 13:10:52 +0000 (15:10 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:29:52 +0000 (17:29 -0500)
When receiving packets from the network we cannot guarantee any
frame ordering, so we should be receiving all valid frames and
let the upper layers deal with it.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libfc/fc_exch.c

index ca7d947dc427c4f8682a9da86b70aa59fe17f587..44feffa2ee25da564eee6760062142cb95d6a995 100644 (file)
@@ -1597,9 +1597,6 @@ static void fc_exch_recv_seq_resp(struct fc_exch_mgr *mp, struct fc_frame *fp)
        if (fc_sof_is_init(sof)) {
                sp->ssb_stat |= SSB_ST_RESP;
                sp->id = fh->fh_seq_id;
-       } else if (sp->id != fh->fh_seq_id) {
-               atomic_inc(&mp->stats.seq_not_found);
-               goto rel;
        }
 
        f_ctl = ntoh24(fh->fh_f_ctl);