Commit cb591285d7

Joran Dirk Greef <joran@ronomon.com>
2020-09-19 16:20:21
Use linux.IORING_SQ_CQ_OVERFLOW
1 parent 31533eb
Changed files (1)
lib
std
os
lib/std/os/linux/io_uring.zig
@@ -279,7 +279,7 @@ pub const IO_Uring = struct {
 
     // Matches the implementation of cq_ring_needs_flush() in liburing.
     fn cq_ring_needs_flush(self: *IO_Uring) bool {
-        return (@atomicLoad(u32, self.sq.flags, .Unordered) & IORING_SQ_CQ_OVERFLOW) != 0;
+        return (@atomicLoad(u32, self.sq.flags, .Unordered) & linux.IORING_SQ_CQ_OVERFLOW) != 0;
     }
 
     /// For advanced use cases only that implement custom completion queue methods.