]> git.dujemihanovic.xyz Git - linux.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)
commit2941267bd3dad018de1d51fe2cd996b7bc1e5a5d
treef2cb4fecfdaa7e869a1cc161eef04ac03961a16b
parent003e8dccdb22712dae388e682182d5f08b32386f
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