commit d5ddf37fffa8c7446458e8eaecc7d8405df5bc65
Author: Madhukar <madhukarprasad@google.com>
Date:   Thu Sep 11 07:02:25 2025 +0000

    Fix shared memory size for AioCtlShmemSize
    
    Before this patch, allocated shared memory size was
    offsetof(PgAioCtl, io_handles). `io_handles` was not accounted as part of the
    computation.
    
    Changed the AioCtlShmemSize to sizeof(PgAioCtl) to account for io_handles.

diff --git a/src/backend/storage/aio/aio_init.c b/src/backend/storage/aio/aio_init.c
index 885c3940c66..54ab84dd6f0 100644
--- a/src/backend/storage/aio/aio_init.c
+++ b/src/backend/storage/aio/aio_init.c
@@ -30,12 +30,8 @@
 static Size
 AioCtlShmemSize(void)
 {
-	Size		sz;
-
 	/* pgaio_ctl itself */
-	sz = offsetof(PgAioCtl, io_handles);
-
-	return sz;
+	return sizeof(PgAioCtl);
 }
 
 static uint32
