diff options
| author | Stefan Bühler <[email protected]> | 2019-04-19 09:57:45 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2019-04-22 17:00:56 +0000 |
| commit | 0d7bae69c574c5f25802f8a71252e7d66933a3ab (patch) | |
| tree | 9c6bd0dd0456a51080c7ed95350768452385aecb /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | io_uring: fix race condition reading SQ entries (diff) | |
| download | kernel-0d7bae69c574c5f25802f8a71252e7d66933a3ab.tar.gz kernel-0d7bae69c574c5f25802f8a71252e7d66933a3ab.zip | |
io_uring: fix race condition when sq threads goes sleeping
Reading the SQ tail needs to come after setting IORING_SQ_NEED_WAKEUP in
flags; there is no cheap barrier for ordering a store before a load, a
full memory barrier is required.
Userspace needs a full memory barrier between updating SQ tail and
checking for the IORING_SQ_NEED_WAKEUP too.
Signed-off-by: Stefan Bühler <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
