io_uring: sync with kernel
[fio.git] / t / io_uring.c
index da3b4d1f4a8f16bfb23ed3c37ac9a33699ffcf1a..9ded1590999ed0cf2e89566fc3e8e471d561dfee 100644 (file)
@@ -315,6 +315,8 @@ submit:
 
                        if (to_wait)
                                flags = IORING_ENTER_GETEVENTS;
+                       if (*ring->flags & IORING_SQ_NEED_WAKEUP)
+                               flags |= IORING_ENTER_SQ_WAKEUP;
                        ret = io_uring_enter(s, to_submit, to_wait, flags);
                        s->calls++;
                }