Commit de7f1d9
io_uring: drop file refs after task cancel
io_uring fds marked O_CLOEXEC and we explicitly cancel all requests
before going through exec, so we don't want to leave task's file
references to not our anymore io_uring instances.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 6c50315 commit de7f1d9
1 file changed
Lines changed: 16 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8958 | 8958 | | |
8959 | 8959 | | |
8960 | 8960 | | |
| 8961 | + | |
| 8962 | + | |
| 8963 | + | |
| 8964 | + | |
| 8965 | + | |
| 8966 | + | |
| 8967 | + | |
| 8968 | + | |
| 8969 | + | |
8961 | 8970 | | |
8962 | 8971 | | |
8963 | 8972 | | |
| |||
8966 | 8975 | | |
8967 | 8976 | | |
8968 | 8977 | | |
8969 | | - | |
8970 | | - | |
8971 | | - | |
8972 | | - | |
8973 | | - | |
8974 | | - | |
8975 | | - | |
8976 | | - | |
8977 | | - | |
| 8978 | + | |
| 8979 | + | |
8978 | 8980 | | |
| 8981 | + | |
| 8982 | + | |
| 8983 | + | |
8979 | 8984 | | |
8980 | 8985 | | |
8981 | 8986 | | |
| |||
9038 | 9043 | | |
9039 | 9044 | | |
9040 | 9045 | | |
| 9046 | + | |
| 9047 | + | |
9041 | 9048 | | |
9042 | 9049 | | |
9043 | 9050 | | |
| |||
0 commit comments