diff options
| author | Joran Dirk Greef <joran@ronomon.com> | 2020-10-03 14:34:42 +0200 |
|---|---|---|
| committer | Joran Dirk Greef <joran@ronomon.com> | 2020-10-03 14:34:42 +0200 |
| commit | a9b107045fb0592f813ffd9f5fef3e2cbfd2ac89 (patch) | |
| tree | a64941738500abf627977ba586acd95e75e63918 /lib/std/debug.zig | |
| parent | 95def89c232acc53c926731fe5143ea093128d73 (diff) | |
| download | zig-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/debug.zig')
0 files changed, 0 insertions, 0 deletions
