[PATCH 1/6] IB/core: add support for draining Shared receive queues
Bart Van Assche
bvanassche at acm.org
Tue Jun 18 09:07:26 PDT 2024
On 6/17/24 5:10 PM, Max Gurtovoy wrote:
> + if (wait_for_completion_timeout(&qp->srq_completion, 10 * HZ) > 0) {
> + while (polled != cq->cqe) {
> + n = ib_process_cq_direct(cq, cq->cqe - polled);
> + if (!n)
> + return;
> + polled += n;
> + }
> + }
Why a hardcoded timeout (10 * HZ) instead of waiting forever?
Thanks,
Bart.
More information about the Linux-nvme
mailing list