From: Bhanu Prakash Gollapudi Date: Tue, 30 Aug 2011 22:54:53 +0000 (-0700) Subject: bnx2fc: Fix FW assert during RSCN stress tests X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~425 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=84bbfac530e455f1e193cef4db35040de22f6071;p=users%2Fjedix%2Flinux-maple.git bnx2fc: Fix FW assert during RSCN stress tests Firmware asserts when the same CQE is armed twice. This scenario happens during RSCN stress tests as driver incorrects arms the CQ after the session is offloaded. Signed-off-by: Bhanu Prakash Gollapudi Signed-off-by: James Bottomley (cherry picked from commit a96e8e11635773dd88dbe1307f9482146cfe0562) Signed-off-by: Joe Jin --- diff --git a/drivers/scsi/bnx2fc/bnx2fc_tgt.c b/drivers/scsi/bnx2fc/bnx2fc_tgt.c index 2138da9571ac..c1800b531270 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_tgt.c +++ b/drivers/scsi/bnx2fc/bnx2fc_tgt.c @@ -133,9 +133,7 @@ retry_ofld: printk(KERN_ERR PFX "map doorbell failed - no mem\n"); /* upload will take care of cleaning up sess resc */ lport->tt.rport_logoff(rdata); - } else - /* Arm CQ */ - bnx2fc_arm_cq(tgt); + } return; ofld_err: