Commit 1cf6be70 authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Akilesh Kailash
Browse files

UPSTREAM: io_uring: fix waiters missing wake ups

There are reports of mariadb hangs, which is caused by a missing
barrier in the waking code resulting in waiters losing events.

The problem was introduced in a backport
3ab9326f ("io_uring: wake up optimisations"),
and the change restores the barrier present in the original commit
3ab9326f ("io_uring: wake up optimisations")

Reported by: Xan Charbonnet <xan@charbonnet.com>
Fixes: 3ab9326f ("io_uring: wake up optimisations")
Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1093243#99
Link: https://lore.kernel.org/io-uring/760086647776a5aebfa77cfff728837d476a4fd8.1737718881.git.asml.silence@gmail.com/
(cherry picked from commit 74a37ce6
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.128

)
Reviewed-by: default avatarLi Zetao <lizetao1@huawei.com>
Change-Id: Ib21c4cb9a135fb58188dadfb7996afcca93bb5e1
Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarAkilesh Kailash <akailash@google.com>
parent 2055772e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment