@@ -4527,9 +4527,6 @@ os_aio_linux_dispatch_read_array_submit()
4527
4527
ulint slots_per_segment;
4528
4528
ulint iocb_index;
4529
4529
ulint submitted;
4530
-
4531
- /* Do we need to consider and check outstanding AIO request threshold?
4532
- It may depend on storages. */
4533
4530
4534
4531
os_mutex_enter (array->mutex );
4535
4532
@@ -4551,9 +4548,6 @@ os_aio_linux_dispatch_read_array_submit()
4551
4548
errno = -submitted;
4552
4549
break ;
4553
4550
}
4554
- #if 0
4555
- fprintf(stderr, "[AIO_SUBMIT] count[%lu]: %lu, submitted: %lu\n", i, count, submitted);
4556
- #endif
4557
4551
array->global_count -= submitted;
4558
4552
array->submitted [i] = submitted;
4559
4553
@@ -4562,9 +4556,6 @@ os_aio_linux_dispatch_read_array_submit()
4562
4556
sizeof (struct iocb *) * slots_per_segment);
4563
4557
array->count [i] = 0 ;
4564
4558
os_mutex_exit (array->mutex );
4565
-
4566
- /* Need to add statistics. */
4567
- // srv_stats.n_aio_submitted.add(submitted);
4568
4559
}
4569
4560
}
4570
4561
#endif
@@ -4579,8 +4570,8 @@ os_aio_linux_dispatch(
4579
4570
/* ==================*/
4580
4571
os_aio_array_t * array, /* !< in: io request array. */
4581
4572
os_aio_slot_t * slot, /* !< in: an already reserved slot. */
4582
- ibool batch_aio,
4583
- ulint batch_size)
4573
+ ibool batch_aio, /* !<in: determine to submit a bunch of aio requests in an array. */
4574
+ ulint batch_size) /* !<in: how many aio requests are submitted simultaneously. */
4584
4575
{
4585
4576
int ret;
4586
4577
ulint io_ctx_index;
@@ -4610,11 +4601,11 @@ os_aio_linux_dispatch(
4610
4601
array->global_count ++;
4611
4602
// count = array->count[io_ctx_index];
4612
4603
count = array->global_count ;
4613
- #if !DASOM
4604
+ #if 0
4614
4605
fprintf(stderr, "[AIO_DISPATCH] total: %lu, count[%lu]: %lu\n", array->global_count, io_ctx_index, array->count[io_ctx_index]);
4615
4606
#endif
4616
4607
os_mutex_exit (array->mutex );
4617
- /* Current : aio_preftch unit == slots_per_segment. -- will be fixed. */
4608
+ /* Current : MAX batch_aio unit == slots_per_segment. -- will be fixed. */
4618
4609
/* fprintf(stderr, "[AIO_DISPATCH] count[%lu]: %lu\n", io_ctx_index, array->count[io_ctx_index]);*/
4619
4610
if (count >= batch_size || count >= array->n_slots ) {
4620
4611
os_aio_linux_dispatch_read_array_submit ();
0 commit comments