Fix io_flush_thread() to wait for in-flight writer tasks before returning

This commit is contained in:
Andrea Mazzoleni 2026-08-17 18:13:56 +02:00
parent d592cccffb
commit e5246cc309
2 changed files with 12 additions and 3 deletions

View file

@ -74,6 +74,7 @@ struct snapraid_task {
struct snapraid_worker {
#if HAVE_THREAD
thread_id_t thread; /**< Thread context for the worker. */
int busy; /**< A task is currently being processed. */
#endif
/**