# Use load acquire semantics when reading the SQPOLL wakeup flag · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/a9b107045fb0592f813ffd9f5fef3e2cbfd2ac89)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: a9b107045fb0592f813ffd9f5fef3e2cbfd2ac89

Requested commit: a9b107045fb0592f813ffd9f5fef3e2cbfd2ac89

Commit: a9b107045fb0592f813ffd9f5fef3e2cbfd2ac89

Tree: a64941738500abf627977ba586acd95e75e63918

Author: Joran Dirk Greef

Committer: Joran Dirk Greef

## Message

```
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

```

## Parents

- [95def89c232acc53c926731fe5143ea093128d73](https://git.cafe/gitcafe/zig/commit/95def89c232acc53c926731fe5143ea093128d73?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/a9b107045fb0592f813ffd9f5fef3e2cbfd2ac89?format=markdown)
