Skip to content

Commit 78d9d7c

Browse files
isilenceaxboe
authored andcommitted
io_uring: don't cancel extra on files match
As tasks always wait and kill their io-wq on exec/exit, files are of no more concern to us, so we don't need to specifically cancel them by hand in those cases. Moreover we should not, because io_match_task() looks at req->task->files now, which is always true and so leads to extra cancellations, that wasn't a case before per-task io-wq. Signed-off-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/0566c1de9b9dd417f5de345c817ca953580e0e2e.1616696997.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <[email protected]>
1 parent 2482b58 commit 78d9d7c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/io_uring.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,8 +1094,6 @@ static bool io_match_task(struct io_kiocb *head,
10941094
io_for_each_link(req, head) {
10951095
if (req->flags & REQ_F_INFLIGHT)
10961096
return true;
1097-
if (req->task->files == files)
1098-
return true;
10991097
}
11001098
return false;
11011099
}

0 commit comments

Comments
 (0)