提交 6ed89b95 编写于 作者: R Ralph Campbell 提交者: Roland Dreier

IB/ipath: Fix two more spin lock problems

Fix a missing unlock in ipath_rc_rcv_resp() and remove an extra unlock
from ipath_rc_rcv_error().
Signed-off-by: NRalph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
上级 1a70a05d
...@@ -1257,6 +1257,7 @@ static inline void ipath_rc_rcv_resp(struct ipath_ibdev *dev, ...@@ -1257,6 +1257,7 @@ static inline void ipath_rc_rcv_resp(struct ipath_ibdev *dev,
wc.dlid_path_bits = 0; wc.dlid_path_bits = 0;
wc.port_num = 0; wc.port_num = 0;
ipath_sqerror_qp(qp, &wc); ipath_sqerror_qp(qp, &wc);
spin_unlock_irqrestore(&qp->s_lock, flags);
bail: bail:
return; return;
} }
...@@ -1436,7 +1437,6 @@ static inline int ipath_rc_rcv_error(struct ipath_ibdev *dev, ...@@ -1436,7 +1437,6 @@ static inline int ipath_rc_rcv_error(struct ipath_ibdev *dev,
break; break;
} }
qp->r_nak_state = 0; qp->r_nak_state = 0;
spin_unlock_irq(&qp->s_lock);
tasklet_hi_schedule(&qp->s_task); tasklet_hi_schedule(&qp->s_task);
unlock_done: unlock_done:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册