Allocate both ioring buffers and fallback buffer memory at the same time + bug fix

This commit is contained in:
2026-06-19 23:16:17 +01:00
parent 4fac135dce
commit 2a7bed5036
2 changed files with 23 additions and 10 deletions

View File

@@ -118,8 +118,10 @@ int main(int argc, char **argv) {
#endif
// Align IO Ring block size to the system page size
g_pagesize = plat_get_pagesize();
g_read_block = ALIGN_UP_POW2(READ_BLOCK, g_pagesize);
#if USE_IORING
g_ioring_buffer_size = ALIGN_UP_POW2(g_ioring_buffer_size, g_pagesize);
g_ioring_buffer_size = ALIGN_UP_POW2(IORING_BUFFER_SIZE, g_pagesize);
#endif
// -------------------------------