]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging/rdma/hfi1: use mod_timer when appropriate
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Thu, 4 Feb 2016 18:59:18 +0000 (10:59 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:38:03 +0000 (20:38 -0500)
commit633d27399514e7726633c9029e3947f0526d2565
treed3e76cc796186cf2721885de2bcb2423485e7cf1
parente6f8c2b31f107f39e7301a02b5a6808d79c9f1f0
staging/rdma/hfi1: use mod_timer when appropriate

Use new timer API to optimize maintenance of
timers during ACK processing.

When we are still expecting ACKs, mod the timer
to avoid a heavyweight delete/add. Otherwise, insure
do_rc_ack() maintains the timer as it had.

Reviewed-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/rc.c