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:
5a648df
)
IB/rdmavt: Move reset calldown to reset path
author
Mike Marciniszyn
<
[email protected]
>
Tue, 6 Sep 2016 11:37:07 +0000
(
04:37
-0700)
committer
Doug Ledford
<
[email protected]
>
Sun, 2 Oct 2016 12:42:09 +0000
(08:42 -0400)
The reset calldown is misplaced.
It should only be called in the code that actually
transitions the QP to reset.
Reviewed-by: Dennis Dalessandro <
[email protected]
>
Signed-off-by: Mike Marciniszyn <
[email protected]
>
Signed-off-by: Dennis Dalessandro <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/sw/rdmavt/qp.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/sw/rdmavt/qp.c
b/drivers/infiniband/sw/rdmavt/qp.c
index 80d2c50f96a3d68d80c69f4489b2d9a07e1e86d2..0a2981559c88807ef82f6f3ddc0f3792dafff5d9 100644
(file)
--- a/
drivers/infiniband/sw/rdmavt/qp.c
+++ b/
drivers/infiniband/sw/rdmavt/qp.c
@@
-530,14
+530,13
@@
static void rvt_reset_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp,
spin_lock(&qp->s_lock);
rvt_clear_mr_refs(qp, 1);
+ /*
+ * Let the driver do any tear down it needs to for a qp
+ * that has been reset
+ */
+ rdi->driver_f.notify_qp_reset(qp);
}
- /*
- * Let the driver do any tear down it needs to for a qp
- * that has been reset
- */
- rdi->driver_f.notify_qp_reset(qp);
-
qp->remote_qpn = 0;
qp->qkey = 0;
qp->qp_access_flags = 0;