]> git.hungrycats.org Git - linux/commitdiff
RDMA/cxgb4: Always wake up waiters in c4iw_peer_abort_intr()
authorSteve Wise <swise@opengridcomputing.com>
Fri, 27 Apr 2012 14:59:16 +0000 (09:59 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:15:42 +0000 (15:15 +0800)
commit 0f1dcfae6bc5563424346ad3a03282b8235a4c33 upstream.

This fixes a race where an ingress abort fails to wake up the thread
blocked in rdma_init() causing the app to hang.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/cxgb4/cm.c

index 0668bb3472d096ba1c0889bbc999b2076932ffe7..7e1ec18e59e8b462b5c144e8fc36c3da0f449c23 100644 (file)
@@ -2665,11 +2665,8 @@ static int peer_abort_intr(struct c4iw_dev *dev, struct sk_buff *skb)
 
        /*
         * Wake up any threads in rdma_init() or rdma_fini().
-        * However, this is not needed if com state is just
-        * MPA_REQ_SENT
         */
-       if (ep->com.state != MPA_REQ_SENT)
-               c4iw_wake_up(&ep->com.wr_wait, -ECONNRESET);
+       c4iw_wake_up(&ep->com.wr_wait, -ECONNRESET);
        sched(dev, skb);
        return 0;
 }