io_uring/uring_cmd: assign ioucmd->cmd at async prep time
authorJens Axboe <axboe@kernel.dk>
Wed, 5 Apr 2023 14:21:45 +0000 (08:21 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 5 Apr 2023 15:30:18 +0000 (09:30 -0600)
commit758d5d64b619ddbbf96a5605d8d5a919aafaafab
treec2d544fd016fd2a47c9b0d70eab7b4b8b8b31fc1
parent69bbc6ade9d9d4e3c556cb83e77b6f3cd9ad3d18
io_uring/uring_cmd: assign ioucmd->cmd at async prep time

Rather than check this in the fast path issue, it makes more sense to
just assign the copy of the data when we're setting it up anyway. This
makes the code a bit cleaner, and removes the need for this check in
the issue path.

Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/uring_cmd.c