'Resource not available error during issuing of multiple write IO requests to the single file

I have created an application which uses io_uring and generates many write IO requests to a single file. As result, I have got a resource unavailable error (OS error 11). Once I set a limit of simultaneous requests to the 1K error is gone.

Could someone suggest to me how to detect the limit of simultaneous requests which I can issue using io_uring?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source