]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ublk: inline ublk_check_and_get_req() into ublk_user_copy()
authorCaleb Sander Mateos <csander@purestorage.com>
Thu, 8 Jan 2026 09:19:35 +0000 (02:19 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Jan 2026 16:15:05 +0000 (09:15 -0700)
commitca80afd8708fa22f6d3a1e0306ae12a64e5291b5
treed4c27fa9874b1b246c954a5f47ca4ac4543ce2d9
parent5bfbbc9938f5dee7f252ef05f47b9a26f05f281a
ublk: inline ublk_check_and_get_req() into ublk_user_copy()

ublk_check_and_get_req() has a single callsite in ublk_user_copy(). It
takes a ton of arguments in order to pass local variables from
ublk_user_copy() to ublk_check_and_get_req() and vice versa. And more
are about to be added. Combine the functions to reduce the argument
passing noise.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c