Hi,

Thank you for looking into this!

On Thu, 20 Aug 2026 at 14:32, Yilin Zhang <[email protected]> wrote:
>
> At 2026-08-20 18:56:32, "Nazir Bilal Yavuz" <[email protected]> wrote:
>
> >One general place is PgAioHandle, I put wait_event_info into
> >PgAioHandle but now its size is increased from 144 to 152. I couldn't
> >find a better place, do you have any suggestions?
>
> Hi,
> I've reviewed your patch.
> I noticed that under the default io_method=worker,
> asynchronous reads from mdreadv still report AIO_IO_COMPLETION when the 
> backend gets blocked.
> The caller‑supplied wait_event_info is still being ignored.
> Is this a problem?

I don't think it is a problem, these are two separate wait events,
reported by two different processes at the same time.

- AIO_IO_COMPLETION is reported when one backend (client backend for
example) is waiting IO to be done by someone else.

- wait_event_info (WAIT_EVENT_DATA_FILE_READ in this case) is used
when the actual backend doing the IO is waiting IO to be completed.

-- 
Regards,
Nazir Bilal Yavuz
Microsoft


Reply via email to