Fail the fio job instead of hanging when out of open files #207

Open
koolkhel wants to merge 2 commits from koolkhel/vitastor:fio-out-of-fds into master

2 Commits

Author SHA1 Message Date
1874fb7343 Fail a fio job out of open files also while it looks up the image
With create_serialize=0 the image lookup runs in each job after the
start, so one job can use up the process's fds while another is still
waiting for etcd, and that job hangs before any I/O. Apply the same
check there. Also count ops that sec_queue completes by itself (mirror
error, read-only image, unknown direction) out of the in-flight count,
so it does not stay above zero.
2026-11-29 21:25:21 +03:00
5fb6f70471 Fail the fio job instead of hanging when out of open files
A fio job whose client runs out of file descriptors retries its OSD
connections forever, so its I/O never completes and fio hangs. When no
I/O has completed for 30 s and the process cannot open even /dev/null,
fail the job with EMFILE and name the limit to raise. The client itself
keeps retrying, as QEMU and the other users of the library expect.
2026-11-29 20:06:01 +03:00