]> git.baikalelectronics.ru Git - 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)
committerEric Biggers <ebiggers@google.com>
Thu, 9 Dec 2021 18:52:55 +0000 (10:52 -0800)
commitefdd26864a909bbfbbb35ac7287dc89cccf2624c
tree72a985c430d13ea5e107342bc7058e7d4f7c42d7
parentebee88b026914036ec5cf355d252516a6ed8fb71
aio: Fix incorrect usage of eventfd_signal_allowed()

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

Fixes: 5d610c9383e4 ("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>
fs/aio.c