Skip to content

Commit

Permalink
Merge branch 'libaio/actual_min_algo_update' of https://github.com/dp…
Browse files Browse the repository at this point in the history
…ronin/fio

* 'libaio/actual_min_algo_update' of https://github.com/dpronin/fio:
  use 'min' macro to find out next value of actual_min in libaio
  • Loading branch information
axboe committed Jul 3, 2023
2 parents 5087502 + a51fe82 commit 38708e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/libaio.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ static int fio_libaio_getevents(struct thread_data *td, unsigned int min,
}
if (r > 0) {
events += r;
actual_min = actual_min > events ? actual_min - events : 0;
actual_min -= min((unsigned int)events, actual_min);
}
else if ((min && r == 0) || r == -EAGAIN) {
fio_libaio_commit(td);
Expand Down

0 comments on commit 38708e2

Please sign in to comment.