diff options
author | Michael S. Tsirkin <mst@dev.mellanox.co.il> | 2007-03-22 14:32:09 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-03-22 14:32:09 -0700 |
commit | 60a596dab7c82bdfa5ee7abcee8e0ce385d4ef21 (patch) | |
tree | 9ea93efa2d3b07e8ba867b1a154a9439a1c181ca /drivers/infiniband/ulp/ipoib/ipoib_cm.c | |
parent | 8559840c4ca3f2fff73a882803bc8916078fac1f (diff) | |
download | kernel-crypto-60a596dab7c82bdfa5ee7abcee8e0ce385d4ef21.tar.gz kernel-crypto-60a596dab7c82bdfa5ee7abcee8e0ce385d4ef21.tar.xz kernel-crypto-60a596dab7c82bdfa5ee7abcee8e0ce385d4ef21.zip |
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 <pradeep@us.ibm.com>.
Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib_cm.c')
-rw-r--r-- | 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 b/drivers/infiniband/ulp/ipoib/ipoib_cm.c index 3484e8ba24a..467564074e9 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)) break; list_del_init(&p->list); spin_unlock_irqrestore(&priv->lock, flags); |