Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932304AbWELX5O (ORCPT ); Fri, 12 May 2006 19:57:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932300AbWELX5N (ORCPT ); Fri, 12 May 2006 19:57:13 -0400 Received: from mx.pathscale.com ([64.160.42.68]:62377 "EHLO mx.pathscale.com") by vger.kernel.org with ESMTP id S932284AbWELXoe (ORCPT ); Fri, 12 May 2006 19:44:34 -0400 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH 40 of 53] ipath - remember to drop spinlock X-Mercurial-Node: 160a111381ae9f6f5df2c2f0c30844b04c9ea2ca Message-Id: <160a111381ae9f6f5df2.1147477405@eng-12.pathscale.com> In-Reply-To: Date: Fri, 12 May 2006 16:43:25 -0700 From: "Bryan O'Sullivan" To: rdreier@cisco.com Cc: openib-general@openib.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 920 Lines: 22 Signed-off-by: Bryan O'Sullivan diff -r 5b565c24d62a -r 160a111381ae drivers/infiniband/hw/ipath/ipath_rc.c --- a/drivers/infiniband/hw/ipath/ipath_rc.c Fri May 12 15:55:28 2006 -0700 +++ b/drivers/infiniband/hw/ipath/ipath_rc.c Fri May 12 15:55:29 2006 -0700 @@ -1505,8 +1505,10 @@ void ipath_rc_rcv(struct ipath_ibdev *de ok = ipath_rkey_ok(dev, &qp->s_rdma_sge, qp->s_rdma_len, vaddr, rkey, IB_ACCESS_REMOTE_READ); - if (unlikely(!ok)) + if (unlikely(!ok)) { + spin_unlock_irq(&qp->s_lock); goto nack_acc; + } /* * Update the next expected PSN. We add 1 later * below, so only add the remainder here. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/