mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 16:53:54 +08:00
io_uring: extract io_uring_files_cancel() in io_uring_task_cancel()
Extract io_uring_files_cancel() call in io_uring_task_cancel() to make io_uring_files_cancel() and io_uring_task_cancel() coherent and easy to read. Signed-off-by: Hao Xu <haoxu@linux.alibaba.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
fd08e5309b
commit
a4aadd11ea
@ -17,7 +17,8 @@ static inline void io_uring_files_cancel(struct files_struct *files)
|
||||
}
|
||||
static inline void io_uring_task_cancel(void)
|
||||
{
|
||||
return io_uring_files_cancel(NULL);
|
||||
if (current->io_uring)
|
||||
__io_uring_cancel(NULL);
|
||||
}
|
||||
static inline void io_uring_free(struct task_struct *tsk)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user