From patchwork Thu Feb 10 14:11:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Marciniszyn X-Patchwork-Id: 546481 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1AEBoss012695 for ; Thu, 10 Feb 2011 14:11:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756424Ab1BJOLd (ORCPT ); Thu, 10 Feb 2011 09:11:33 -0500 Received: from [198.186.4.11] ([198.186.4.11]:33272 "EHLO kop-dev-sles11-04.qlogic.org" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1756405Ab1BJOL3 (ORCPT ); Thu, 10 Feb 2011 09:11:29 -0500 Received: from kop-dev-sles11-04.qlogic.org (localhost [127.0.0.1]) by kop-dev-sles11-04.qlogic.org (Postfix) with ESMTP id 091BB27E2BD; Thu, 10 Feb 2011 09:11:29 -0500 (EST) Subject: [PATCH] IB/qib: Kernel BUG at include/linux/timer.h:82 To: Roland Dreier From: Mike Marciniszyn Cc: linux-rdma@vger.kernel.org, tom.elken@qlogic.com Date: Thu, 10 Feb 2011 09:11:28 -0500 Message-ID: <20110210141128.27961.88988.stgit@kop-dev-sles11-04.qlogic.org> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 10 Feb 2011 14:11:51 +0000 (UTC) diff --git a/drivers/infiniband/hw/qib/qib_rc.c b/drivers/infiniband/hw/qib/qib_rc.c index 8245237..25ddb5b 100644 --- a/drivers/infiniband/hw/qib/qib_rc.c +++ b/drivers/infiniband/hw/qib/qib_rc.c @@ -1439,6 +1439,9 @@ static void qib_rc_rcv_resp(struct qib_ibport *ibp, } spin_lock_irqsave(&qp->s_lock, flags); + if (!(ib_qib_state_ops[qp->state] & QIB_PROCESS_RECV_OK)) + goto ack_done; + /* Ignore invalid responses. */ if (qib_cmp24(psn, qp->s_next_psn) >= 0)