On Tue, Mar 25, 2025 at 04:56:53PM -0400, Andres Freund wrote:
> The repeated-iteration approach taken in pgaio_closing_fd() isn't the
> prettiest, but it's hard to to imagine that ever being a noticeable.
Yep. I've reviewed the fixup code, and it looks all good.
> This survives a testrun where I use your torture patch and where I force all
> IOs to use ASYNC. Previously that did not get very far. I also did verify
> that, if I allow a small number of FDs, we do not wrongly wait for all IOs.
I, too, see the test diffs gone.