On Sun, Feb 09, 2025 at 08:34:30AM -0800, Eric Biggers wrote: > > Or just make it synchronous which would be way easier, and the calling code uses > it synchronously anyway. Note that synchronous in general does not make the problem go away. The important thing here is to give congestion feedback in the form of EBUSY which tells the user to stop generating more data until a callback is made. While synchronous can be a form of congestion control by requiring an extra thread for each waiting request, it doesn't really give that feedback to the upper level. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt