Hi,

I've observed that the functions `pgaio_io_call_complete_shared()` and` 
pgaio_io_call_complete_local()` contain nearly identical code, 
with only minor differences in initialization and callback selection. 
This code duplication was previously noted with an XXX comment.
I propose extracting the common logic into a new internal function 
`pgaio_io_call_complete_internal()`, 
which uses a boolean parameter to distinguish between the two code paths. 
What do you think of this approach?

--
Regards,
Man Zeng
www.openhalo.org

Attachment: 0001-aio-Deduplicate-shared-and-local-completion-callback.patch
Description: Binary data

Reply via email to