aboutsummaryrefslogtreecommitdiff
path: root/lib/std/priority_queue.zig
diff options
context:
space:
mode:
authorJoran Dirk Greef <joran@ronomon.com>2020-10-03 14:34:42 +0200
committerJoran Dirk Greef <joran@ronomon.com>2020-10-03 14:34:42 +0200
commita9b107045fb0592f813ffd9f5fef3e2cbfd2ac89 (patch)
treea64941738500abf627977ba586acd95e75e63918 /lib/std/priority_queue.zig
parent95def89c232acc53c926731fe5143ea093128d73 (diff)
downloadzig-a9b107045fb0592f813ffd9f5fef3e2cbfd2ac89.tar.gz
zig-a9b107045fb0592f813ffd9f5fef3e2cbfd2ac89.zip
Use load acquire semantics when reading the SQPOLL wakeup flag
Ensures that the wakeup flag is read after the tail pointer has been written. It's important to use memory load acquire semantics for the flags read, otherwise the application and the kernel might not agree on the consistency of the wakeup flag, leading to I/O starvation. Refs: https://github.com/axboe/liburing/commit/6768ddcc562adb6ea141cf508bccecb6be8ce666 Refs: https://github.com/axboe/liburing/issues/219
Diffstat (limited to 'lib/std/priority_queue.zig')
0 files changed, 0 insertions, 0 deletions