aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/io-wq.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-12-09 08:54:29 -0700
committerJens Axboe <axboe@kernel.dk>2021-12-10 13:56:28 -0700
commit78a780602075d8b00c98070fa26e389b3b3efa72 (patch)
tree73d7dd6a687297596e8cd9866bab2e3d4efae939 /fs/io-wq.c
parentio-wq: remove spurious bit clear on task_work addition (diff)
downloadwireguard-linux-78a780602075d8b00c98070fa26e389b3b3efa72.tar.xz
wireguard-linux-78a780602075d8b00c98070fa26e389b3b3efa72.zip
io_uring: ensure task_work gets run as part of cancelations
If we successfully cancel a work item but that work item needs to be processed through task_work, then we can be sleeping uninterruptibly in io_uring_cancel_generic() and never process it. Hence we don't make forward progress and we end up with an uninterruptible sleep warning. While in there, correct a comment that should be IFF, not IIF. Reported-and-tested-by: syzbot+21e6887c0be14181206d@syzkaller.appspotmail.com Cc: stable@vger.kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.c')
0 files changed, 0 insertions, 0 deletions