io_uring: refactor io_assign_file error path
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 18 Apr 2022 19:51:12 +0000 (20:51 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Apr 2022 22:21:26 +0000 (16:21 -0600)
commit99ea4d9da9c542943b64dd9768c6587c8722d51d
treea01a61399e59172263d3381cf8eaefa4b395a14b
parent73687727298feed553c3ea7ad0f588d7029a2862
io_uring: refactor io_assign_file error path

All io_assign_file() callers do error handling themselves,
req_set_fail() in the io_assign_file()'s fail path needlessly bloats the
kernel and is not the best abstraction to have. Simplify the error path.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/eff77fb1eac2b6a90cca5223813e6a396ffedec0.1650311386.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c