projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0f98f7
)
IB/hfi1: Fix rnr_timer addition
author
Ira Weiny
<
[email protected]
>
Mon, 17 Oct 2016 11:20:09 +0000
(
04:20
-0700)
committer
Doug Ledford
<
[email protected]
>
Tue, 15 Nov 2016 21:16:44 +0000
(16:16 -0500)
The new s_rnr_timeout was not properly being set and the code was
incorrectly setting a different timer.
Found by code inspection.
Cc: <
[email protected]
> # 4.7.x
Fixes: 08279d5c9424 ("staging/rdma/hfi1: use new RNR timer")
Reviewed-by: Mike Marciniszyn <
[email protected]
>
Signed-off-by: Ira Weiny <
[email protected]
>
Signed-off-by: Dennis Dalessandro <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/hw/hfi1/rc.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hfi1/rc.c
b/drivers/infiniband/hw/hfi1/rc.c
index 8bc5013f39a1ae7ef6f28af82c56017c89edacdb..83198a8a87979baeeb58c591fba0e4d06db6e014 100644
(file)
--- a/
drivers/infiniband/hw/hfi1/rc.c
+++ b/
drivers/infiniband/hw/hfi1/rc.c
@@
-89,7
+89,7
@@
void hfi1_add_rnr_timer(struct rvt_qp *qp, u32 to)
lockdep_assert_held(&qp->s_lock);
qp->s_flags |= RVT_S_WAIT_RNR;
-
qp->s
_timer.expires = jiffies + usecs_to_jiffies(to);
+
priv->s_rnr
_timer.expires = jiffies + usecs_to_jiffies(to);
add_timer(&priv->s_rnr_timer);
}