Commit 78a7806
committed
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>1 parent e47498a commit 78a7806
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9824 | 9824 | | |
9825 | 9825 | | |
9826 | 9826 | | |
9827 | | - | |
| 9827 | + | |
9828 | 9828 | | |
9829 | 9829 | | |
9830 | 9830 | | |
| |||
9866 | 9866 | | |
9867 | 9867 | | |
9868 | 9868 | | |
9869 | | - | |
| 9869 | + | |
| 9870 | + | |
9870 | 9871 | | |
| 9872 | + | |
9871 | 9873 | | |
9872 | 9874 | | |
9873 | 9875 | | |
| |||
0 commit comments