mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 10:44:23 +08:00
IB/rdmavt: Move reset calldown to reset path
The reset calldown is misplaced. It should only be called in the code that actually transitions the QP to reset. Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
5a648dfad0
commit
30a345cc01
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user