IB/rxe: Convert timers to use timer_setup()

In preparation for unconditionally passing the struct timer_list pointer to
all timer callbacks, switch to using the new timer_setup() and from_timer()
to pass the timer pointer explicitly.

Cc: Moni Shoua <monis@mellanox.com>
Cc: Doug Ledford <dledford@redhat.com>
Cc: Sean Hefty <sean.hefty@intel.com>
Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
Cc: linux-rdma@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
Kees Cook
2017-10-24 03:28:27 -07:00
committed by Doug Ledford
parent 5a3dc32372
commit 3bfbea7473
4 changed files with 8 additions and 8 deletions

View File

@@ -118,9 +118,9 @@ static void req_retry(struct rxe_qp *qp)
}
}
void rnr_nak_timer(unsigned long data)
void rnr_nak_timer(struct timer_list *t)
{
struct rxe_qp *qp = (struct rxe_qp *)data;
struct rxe_qp *qp = from_timer(qp, t, rnr_nak_timer);
pr_debug("qp#%d rnr nak timer fired\n", qp_num(qp));
rxe_run_task(&qp->req.task, 1);