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>
This commit is contained in:
parent
8559840c4c
commit
60a596dab7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user