]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: make del_task_file more forgiving
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 6 Mar 2021 11:02:11 +0000 (11:02 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 7 Mar 2021 21:12:43 +0000 (14:12 -0700)
commita6e974de953e2776a59673c7856226e742f29a2a
treef2cb4fecfdaa7e869a1cc161eef04ac03961a16b
parentd7da363a8a17cff169f0634490d947f6546ddbb6
io_uring: make del_task_file more forgiving

Rework io_uring_del_task_file(), so it accepts an index to delete, and
it's not necessarily have to be in the ->xa. Infer file from xa_erase()
to maintain a single origin of truth.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c