Commit:     60a596dab7c82bdfa5ee7abcee8e0ce385d4ef21
Parent:     8559840c4ca3f2fff73a882803bc8916078fac1f
Author:     Michael S. Tsirkin <[EMAIL PROTECTED]>
AuthorDate: Thu Mar 22 14:32:09 2007 -0700
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Thu Mar 22 14:32:09 2007 -0700

    IPoIB/cm: Fix reaping of stale connections
    The sense of the time_after_eq() test in ipoib_cm_stale_task() is
    reversed so that only non-stale connections are reaped.  Fix this by
    changing to time_before_eq().
    Noticed by Pradeep Satyanarayana <[EMAIL PROTECTED]>.
    Signed-off-by: Michael S. Tsirkin <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
 drivers/infiniband/ulp/ipoib/ipoib_cm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c 
index 3484e8b..4675640 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
@@ -1095,7 +1095,7 @@ static void ipoib_cm_stale_task(struct work_struct *work)
                /* List if sorted by LRU, start from tail,
                 * stop when we see a recently used entry */
                p = list_entry(priv->cm.passive_ids.prev, typeof(*p), list);
-               if (time_after_eq(jiffies, p->jiffies + IPOIB_CM_RX_TIMEOUT))
+               if (time_before_eq(jiffies, p->jiffies + IPOIB_CM_RX_TIMEOUT))
                spin_unlock_irqrestore(&priv->lock, flags);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to