]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
aio: Fix incorrect usage of eventfd_signal_allowed()
authorXie Yongji <xieyongji@bytedance.com>
Mon, 13 Sep 2021 11:19:28 +0000 (19:19 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:49:20 +0000 (09:49 +0100)
commitc48dea7706e8b217c952b2f72aa4e9c2ff3c8ba8
tree853aa4b053537f8bccb5bb88a1eb5d7f6557ffb6
parent7a24fb4bc3f47c73258de811a5d10a8d74d44055
aio: Fix incorrect usage of eventfd_signal_allowed()

BugLink: https://bugs.launchpad.net/bugs/1954931
commit 4b3749865374899e115aa8c48681709b086fe6d3 upstream.

We should defer eventfd_signal() to the workqueue when
eventfd_signal_allowed() return false rather than return
true.

Fixes: b542e383d8c0 ("eventfd: Make signal recursion protection a task bit")
Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Link: https://lore.kernel.org/r/20210913111928.98-1-xieyongji@bytedance.com
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/aio.c