[ofa-general] Re: [GIT PULL] please pull infiniband.git
Michael S. Tsirkin
mst at dev.mellanox.co.il
Thu Mar 29 16:29:14 PDT 2007
> Quoting Roland Dreier <rdreier at cisco.com>:
> Subject: Re: [ofa-general] Re: [GIT PULL] please pull infiniband.git
>
> > Assume you stick a pointer in WR_ID. When is it safe to free
> > the object?
>
> I thought it was clear -- when the work request completes. But I see
> that you saw that now...
>
> > However, it seems IB spec has a hole - the procedure outlined there
> > can not work for SRQ.
>
> I think the (ugly) solution that the IB spec authors had in mind is to
> transition the QP to the error state and wait for the "last WQE reached"
> affiliated event on that QP.
No, this does not work.
The last WQE reached event is on SRQ, not on QP, and it will never occur if we
repost WRs on SRQ as we should to make other QPs on the same SRQ continue to
work.
--
MST
More information about the general
mailing list