lkml.org 
[lkml]   [2012]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[ 14/91] RDMA/cxgb4: Always wake up waiters in c4iw_peer_abort_intr()
    3.4-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Steve Wise <swise@opengridcomputing.com>

    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 | 5 +----
    1 file changed, 1 insertion(+), 4 deletions(-)

    --- a/drivers/infiniband/hw/cxgb4/cm.c
    +++ b/drivers/infiniband/hw/cxgb4/cm.c
    @@ -2667,11 +2667,8 @@ static int peer_abort_intr(struct c4iw_d

    /*
    * 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;
    }



    \
     
     \ /
      Last update: 2012-05-27 04:21    [W:0.022 / U:93.352 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site