On Wed, 2019-01-23 at 19:29 -0800, Dennis Dalessandro wrote: > + * Return: > + * false if all the conditions below are statisfied: > + * 1. The list is empty or > + * 2. The indicated qp is at the head of the list and the > + * HFI1_S_WAIT_TID_SPACE bit is set in qp->s_flags. > + * true is returned otherwise. > + */ > +static bool kernel_tid_waiters(struct hfi1_ctxtdata *rcd, > + struct tid_queue *queue, struct rvt_qp *qp) > + __must_hold(&rcd->exp_lock) __must_hold(&qp->s_lock) > +{ > + struct rvt_qp *fqp; > + bool ret = true; > + > + lockdep_assert_held(&qp->s_lock); > + lockdep_assert_held(&rcd->exp_lock); > + fqp = first_qp(rcd, queue); > + if (!fqp || (fqp == qp && (qp->s_flags & HFI1_S_WAIT_TID_SPACE))) > + ret = false; > + rvt_put_qp(fqp); > + return ret; > +} > + The comment and the code don't match. I can fix it up when applying, or if this series needs a respin you can fix it then. -- Doug Ledford <dledford@xxxxxxxxxx> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
Attachment:
signature.asc
Description: This is a digitally signed message part