Re: Potential lost receive WCs (was "[PATCH WIP 38/43]")

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 30, 2015 at 10:00:08AM +0300, Sagi Grimberg wrote:

> I still think that draining the CQ without respecting a quota is
> wrong, even if driverX has a glitch there.

Sure, but you can't just return from the CQ upcall after doing a
budget and expect to be called again in the future. That is absolutely
wrong.

It is very difficult to mix and match processing in the CQ upcall and
in another context.

So, either you drain the whole thing in the CQ upcall, or delegate to
another context and process it there, possibly sleeping during
processing when the budget is hit.

Overall, the process is the same, drain entirely before calling
ib_req_notify_cq, don't expect any CQ upcalls until ib_req_notify_cq
is called.

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux