]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] bnx2fc: Do not reuse the fcoe connection id immediately
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>
Fri, 5 Aug 2011 00:38:44 +0000 (17:38 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 27 Aug 2011 14:35:38 +0000 (08:35 -0600)
CFC_DELETE is issued 2 secs after CONN_TERM is completed. If the session is
uploaded and offloaded immediately, it has to wait for the connection id to be
available.

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bnx2fc/bnx2fc_tgt.c

index d5311b577ccadcf322cf271410552ba31cfb50e3..3d28fbe1d99ef6b6fba7a87fb9c42b35c7224cb8 100644 (file)
@@ -624,7 +624,6 @@ static void bnx2fc_free_conn_id(struct bnx2fc_hba *hba, u32 conn_id)
        /* called with hba mutex held */
        spin_lock_bh(&hba->hba_lock);
        hba->tgt_ofld_list[conn_id] = NULL;
-       hba->next_conn_id = conn_id;
        spin_unlock_bh(&hba->hba_lock);
 }