engines/libaio: fix submit loop to use 'ld->queued' for exit
[fio.git] / engines / libaio.c
index ca7bfdef58a35a58d29de89a33d7176eef3e4cf7..6f625167e9b7d2f03350a72086fb67db1e421885 100644 (file)
@@ -283,7 +283,7 @@ static int fio_libaio_commit(struct thread_data *td)
                        continue;
                } else
                        break;
                        continue;
                } else
                        break;
-       } while (ld->head != ld->tail);
+       } while (ld->queued);
 
        return ret;
 }
 
        return ret;
 }