On 10/7/24 4:16 PM, David Wei wrote: > From: Pavel Begunkov <asml.silence@xxxxxxxxx> > > io_zc_rx_tcp_recvmsg() continues until it fails or there is nothing to > receive. If the other side sends fast enough, we might get stuck in > io_zc_rx_tcp_recvmsg() producing more and more CQEs but not letting the > user to handle them leading to unbound latencies. > > Break out of it based on an arbitrarily chosen limit, the upper layer > will either return to userspace or requeue the request. Probably prudent, and hand wavy limits are just fine as all we really care about is breaking out. Looks fine to me. -- Jens Axboe