]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
RDMA/addr: Use time_after_eq() instead of time_after() in queue_req()
authorKrishna Kumar <krkumar2@in.ibm.com>
Tue, 17 Oct 2006 04:39:09 +0000 (10:09 +0530)
committerRoland Dreier <rolandd@cisco.com>
Wed, 29 Nov 2006 23:33:05 +0000 (15:33 -0800)
commitf115db4803effd8207c3169590fb3f13336a4093
treee485659a0593e06583a661ec83e20647d90a964e
parente4022274cf8df1f78f9e20ba7e199a9edf655422
RDMA/addr: Use time_after_eq() instead of time_after() in queue_req()

In queue_req(), use time_after_eq() instead of time_after()
for following reasons :

- Improves insert time if multiple entries with same time are
  present.
- set_timeout need not be called if entry with same time
  is added to the list (and that happens to be the entry
  with the smallest time), saving atomic/locking operations.
- Earlier entries with same time are deleted first (fifo).

Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/addr.c