]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Convert AIO to use the new shmem allocation functions
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 5 Apr 2026 23:13:04 +0000 (02:13 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 5 Apr 2026 23:13:04 +0000 (02:13 +0300)
commit58a1573385edb28435913affe626ff7daffba76d
tree8d3111d81a92eea34ee95c789a0b894ee888bfc6
parent2e0943a8597e1eeaec184465ba8b1f2f453a69e0
Convert AIO to use the new shmem allocation functions

This replaces the "shmem_size" and "shmem_init" callbacks in the IO
methods table with the same ShmemCallback struct that we now use in
other subsystems

Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/CAExHW5vM1bneLYfg0wGeAa=52UiJ3z4vKd3AJ72X8Fw6k3KKrg@mail.gmail.com
src/backend/storage/aio/aio_init.c
src/backend/storage/aio/method_io_uring.c
src/backend/storage/aio/method_worker.c
src/backend/storage/ipc/ipci.c
src/include/storage/aio_internal.h
src/include/storage/aio_subsys.h
src/include/storage/subsystemlist.h