Skip to content

Commit

Permalink
IB/ipath: Fix local loopback bug when waiting for resources
Browse files Browse the repository at this point in the history
This patch fixes a minor bug where the wrong QP was checked for a send
work request that should wait for an RNR timeout.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Ralph Campbell authored and Roland Dreier committed Jul 10, 2007
1 parent 2c9749c commit 6d2fad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/ipath/ipath_ruc.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ static void ipath_ruc_loopback(struct ipath_qp *sqp)
spin_lock_irqsave(&sqp->s_lock, flags);

if (!(ib_ipath_state_ops[sqp->state] & IPATH_PROCESS_SEND_OK) ||
qp->s_rnr_timeout) {
sqp->s_rnr_timeout) {
spin_unlock_irqrestore(&sqp->s_lock, flags);
goto done;
}
Expand Down

0 comments on commit 6d2fad0

Please sign in to comment.