]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
io_uring: perform IOPOLL reaping if canceler is thread itself
authorJens Axboe <axboe@kernel.dk>
Thu, 11 Mar 2021 17:49:20 +0000 (10:49 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 17 Mar 2021 18:48:59 +0000 (13:48 -0500)
commit5bb261c186545580f9158150e36ff0f89d4744fb
tree96dbebb9d6e95a6b8e0fb2d90ded319a0dda6d52
parentade93bd6f89a2462ccfe1ae680171bb36c166c20
io_uring: perform IOPOLL reaping if canceler is thread itself

BugLink: https://bugs.launchpad.net/bugs/1919492
[ Upstream commit d052d1d685f5125249ab4ff887562c88ba959638 ]

We bypass IOPOLL completion polling (and reaping) for the SQPOLL thread,
but if it's the thread itself invoking cancelations, then we still need
to perform it or no one will.

Fixes: 9936c7c2bc76 ("io_uring: deduplicate core cancellations sequence")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/io_uring.c