[LTP] [PATCH] aio-stress: fix opened fd leak

Cyril Hrubis chrubis@suse.cz
Thu Jan 16 16:55:50 CET 2025


Hi!
> The patch seems ok, but we should probably end all active operations 
> before finished operations.

Which we do by finish_oper(t, oper) I suppose. At least that should wait
for the current in-flight IO operation to finish.

If we wanted to finish all operations that were supposed to be done by
the rest of the parameters we would have to do:

	while (t->active_opers) {
		run_active_list(t, io_iter, max_io_submit):
	}

Instead of:

	while (t->active_opers && cnt < iterations) {
		run_active_list(t, io_iter, max_io_submit);
		cnt++;
	}

Which would mean that the iterations parameter would became useless.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list