From: Bhanu Prakash Gollapudi Date: Fri, 5 Aug 2011 00:38:44 +0000 (-0700) Subject: [SCSI] bnx2fc: Do not reuse the fcoe connection id immediately X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~442 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f4c98bb20b2d986c38dbb3e4ef3727ec0b7bd65a;p=users%2Fjedix%2Flinux-maple.git [SCSI] bnx2fc: Do not reuse the fcoe connection id immediately 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 Signed-off-by: James Bottomley (cherry picked from commit 291fbe138f820f880b3e70852d200c0f2527430c) Signed-off-by: Joe Jin --- diff --git a/drivers/scsi/bnx2fc/bnx2fc_tgt.c b/drivers/scsi/bnx2fc/bnx2fc_tgt.c index d5311b577ccad..3d28fbe1d99ef 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_tgt.c +++ b/drivers/scsi/bnx2fc/bnx2fc_tgt.c @@ -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); }