mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 06:34:12 +08:00
io_uring: end waiting before task cancel attempts
Get rid of TASK_UNINTERRUPTIBLE and waiting with finish_wait before going for next iteration in __io_uring_task_cancel(), because __io_uring_files_cancel() doesn't expect that sheduling is disallowed. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
55583d72e2
commit
f57555eda9
@ -8989,9 +8989,9 @@ void __io_uring_task_cancel(void)
|
|||||||
if (inflight != tctx_inflight(tctx))
|
if (inflight != tctx_inflight(tctx))
|
||||||
continue;
|
continue;
|
||||||
schedule();
|
schedule();
|
||||||
|
finish_wait(&tctx->wait, &wait);
|
||||||
} while (1);
|
} while (1);
|
||||||
|
|
||||||
finish_wait(&tctx->wait, &wait);
|
|
||||||
atomic_dec(&tctx->in_idle);
|
atomic_dec(&tctx->in_idle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user