diff options
author | Stefan Bühler <source@stbuehler.de> | 2019-04-19 12:57:45 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-04-22 20:00:56 +0300 |
commit | 0d7bae69c574c5f25802f8a71252e7d66933a3ab (patch) | |
tree | 9c6bd0dd0456a51080c7ed95350768452385aecb /drivers/hwmon/adt7475.c | |
parent | e523a29c4f2703bdb98f68ce1bb256e259fd8d5f (diff) | |
download | linux-0d7bae69c574c5f25802f8a71252e7d66933a3ab.tar.xz |
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 <source@stbuehler.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/hwmon/adt7475.c')
0 files changed, 0 insertions, 0 deletions