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 <[email protected]>
Reviewed-by: Matthias van de Meent <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/CAExHW5vM1bneLYfg0wGeAa=52uij3z4vkd3aj72x8fw6k3k...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/58a1573385edb28435913affe626ff7daffba76d

Modified Files
--------------
src/backend/storage/aio/aio_init.c        | 112 ++++++++++++++++++------------
src/backend/storage/aio/method_io_uring.c |  38 +++++-----
src/backend/storage/aio/method_worker.c   |  84 +++++++++-------------
src/backend/storage/ipc/ipci.c            |   2 -
src/include/storage/aio_internal.h        |  16 +----
src/include/storage/aio_subsys.h          |   3 -
src/include/storage/subsystemlist.h       |   3 +
7 files changed, 127 insertions(+), 131 deletions(-)

Reply via email to