Allocate both ioring buffers and fallback buffer memory at the same time + bug fix
This commit is contained in:
@@ -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
|
||||
|
||||
// -------------------------------
|
||||
|
||||
Reference in New Issue
Block a user